home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / misc / demo / hyp10dem.sit / HyperTint Demo / cards.xml < prev    next >
Encoding:
Text File  |  1992-03-29  |  297.6 KB  |  6,517 lines

  1. card_3020.xml
  2. <?xml version="1.0" encoding="utf-8" ?>
  3. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  4. <card>
  5.     <id>3020</id>
  6.     <filler1>0</filler1>
  7.     <cantDelete> <false /> </cantDelete>
  8.     <showPict> <true /> </showPict>
  9.     <dontSearch> <false /> </dontSearch>
  10.     <owner>2760</owner>
  11.     <link rel="stylesheet" type="text/css" href="stylesheet_3268.css" />
  12.     <part>
  13.         <id>3</id>
  14.         <type>button</type>
  15.         <visible> <false /> </visible>
  16.         <reserved5> 0 </reserved5>
  17.         <reserved4> 0 </reserved4>
  18.         <reserved3> 0 </reserved3>
  19.         <reserved2> 0 </reserved2>
  20.         <reserved1> 0 </reserved1>
  21.         <enabled> <true /> </enabled>
  22.         <rect>
  23.             <left>283</left>
  24.             <top>110</top>
  25.             <right>425</right>
  26.             <bottom>132</bottom>
  27.         </rect>
  28.         <style>shadow</style>
  29.         <showName> <true /> </showName>
  30.         <highlight> <false /> </highlight>
  31.         <autoHighlight> <false /> </autoHighlight>
  32.         <sharedHighlight> <true /> </sharedHighlight>
  33.         <family>0</family>
  34.         <titleWidth>0</titleWidth>
  35.         <icon>0</icon>
  36.         <textAlign>center</textAlign>
  37.         <font>Chicago</font>
  38.         <textSize>12</textSize>
  39.         <textStyle>plain</textStyle>
  40.         <name>HyperTint Overview</name>
  41.         <script>on mouseUp
  42. HTVisual "iris open"
  43. go to card id 4709
  44. end mouseUp
  45.  
  46. </script>
  47.     </part>
  48.     <part>
  49.         <id>4</id>
  50.         <type>button</type>
  51.         <visible> <false /> </visible>
  52.         <reserved5> 0 </reserved5>
  53.         <reserved4> 0 </reserved4>
  54.         <reserved3> 0 </reserved3>
  55.         <reserved2> 0 </reserved2>
  56.         <reserved1> 0 </reserved1>
  57.         <enabled> <true /> </enabled>
  58.         <rect>
  59.             <left>283</left>
  60.             <top>215</top>
  61.             <right>425</right>
  62.             <bottom>237</bottom>
  63.         </rect>
  64.         <style>shadow</style>
  65.         <showName> <true /> </showName>
  66.         <highlight> <false /> </highlight>
  67.         <autoHighlight> <false /> </autoHighlight>
  68.         <sharedHighlight> <true /> </sharedHighlight>
  69.         <family>0</family>
  70.         <titleWidth>0</titleWidth>
  71.         <icon>0</icon>
  72.         <textAlign>center</textAlign>
  73.         <font>Chicago</font>
  74.         <textSize>12</textSize>
  75.         <textStyle>plain</textStyle>
  76.         <name>About HyperTintΓǪ</name>
  77.         <script>on mouseUp
  78. HTVisual "iris open"
  79. go to card id 18735
  80. end mouseUp
  81.  
  82. </script>
  83.     </part>
  84.     <part>
  85.         <id>5</id>
  86.         <type>button</type>
  87.         <visible> <false /> </visible>
  88.         <reserved5> 0 </reserved5>
  89.         <reserved4> 0 </reserved4>
  90.         <reserved3> 0 </reserved3>
  91.         <reserved2> 0 </reserved2>
  92.         <reserved1> 0 </reserved1>
  93.         <enabled> <true /> </enabled>
  94.         <rect>
  95.             <left>283</left>
  96.             <top>144</top>
  97.             <right>425</right>
  98.             <bottom>166</bottom>
  99.         </rect>
  100.         <style>shadow</style>
  101.         <showName> <true /> </showName>
  102.         <highlight> <false /> </highlight>
  103.         <autoHighlight> <false /> </autoHighlight>
  104.         <sharedHighlight> <true /> </sharedHighlight>
  105.         <family>0</family>
  106.         <titleWidth>0</titleWidth>
  107.         <icon>0</icon>
  108.         <textAlign>center</textAlign>
  109.         <font>Chicago</font>
  110.         <textSize>12</textSize>
  111.         <textStyle>plain</textStyle>
  112.         <name>XCMD Reference</name>
  113.         <script>on mouseUp
  114. HTVisual "iris open"
  115. go to card id 6550
  116. end mouseUp
  117.  
  118. </script>
  119.     </part>
  120.     <part>
  121.         <id>8</id>
  122.         <type>button</type>
  123.         <visible> <false /> </visible>
  124.         <reserved5> 0 </reserved5>
  125.         <reserved4> 0 </reserved4>
  126.         <reserved3> 0 </reserved3>
  127.         <reserved2> 0 </reserved2>
  128.         <reserved1> 0 </reserved1>
  129.         <enabled> <true /> </enabled>
  130.         <rect>
  131.             <left>283</left>
  132.             <top>178</top>
  133.             <right>425</right>
  134.             <bottom>200</bottom>
  135.         </rect>
  136.         <style>shadow</style>
  137.         <showName> <true /> </showName>
  138.         <highlight> <false /> </highlight>
  139.         <autoHighlight> <false /> </autoHighlight>
  140.         <sharedHighlight> <true /> </sharedHighlight>
  141.         <family>0</family>
  142.         <titleWidth>0</titleWidth>
  143.         <icon>0</icon>
  144.         <textAlign>center</textAlign>
  145.         <font>Chicago</font>
  146.         <textSize>12</textSize>
  147.         <textStyle>plain</textStyle>
  148.         <name>Notes and Tips</name>
  149.         <script>on mouseUp
  150. HTVisual "iris open"
  151. go to card id 8686
  152. end mouseUp</script>
  153.     </part>
  154.     <part>
  155.         <id>9</id>
  156.         <type>field</type>
  157.         <visible> <false /> </visible>
  158.         <dontWrap> <false /> </dontWrap>
  159.         <dontSearch> <true /> </dontSearch>
  160.         <sharedText> <false /> </sharedText>
  161.         <fixedLineHeight> <false /> </fixedLineHeight>
  162.         <autoTab> <false /> </autoTab>
  163.         <lockText> <false /> </lockText>
  164.         <rect>
  165.             <left>11</left>
  166.             <top>160</top>
  167.             <right>177</right>
  168.             <bottom>194</bottom>
  169.         </rect>
  170.         <style>transparent</style>
  171.         <autoSelect> <false /> </autoSelect>
  172.         <showLines> <false /> </showLines>
  173.         <wideMargins> <false /> </wideMargins>
  174.         <multipleLines> <false /> </multipleLines>
  175.         <reservedFamily> 0 </reservedFamily>
  176.         <titleWidth>0</titleWidth>
  177.         <icon>0</icon>
  178.         <textAlign>left</textAlign>
  179.         <font>Geneva</font>
  180.         <textSize>12</textSize>
  181.         <textStyle>plain</textStyle>
  182.         <textHeight>16</textHeight>
  183.         <name>ButtFore</name>
  184.         <script></script>
  185.     </part>
  186.     <part>
  187.         <id>10</id>
  188.         <type>field</type>
  189.         <visible> <false /> </visible>
  190.         <dontWrap> <false /> </dontWrap>
  191.         <dontSearch> <true /> </dontSearch>
  192.         <sharedText> <false /> </sharedText>
  193.         <fixedLineHeight> <false /> </fixedLineHeight>
  194.         <autoTab> <false /> </autoTab>
  195.         <lockText> <false /> </lockText>
  196.         <rect>
  197.             <left>5</left>
  198.             <top>198</top>
  199.             <right>177</right>
  200.             <bottom>238</bottom>
  201.         </rect>
  202.         <style>transparent</style>
  203.         <autoSelect> <false /> </autoSelect>
  204.         <showLines> <false /> </showLines>
  205.         <wideMargins> <false /> </wideMargins>
  206.         <multipleLines> <false /> </multipleLines>
  207.         <reservedFamily> 0 </reservedFamily>
  208.         <titleWidth>0</titleWidth>
  209.         <icon>0</icon>
  210.         <textAlign>left</textAlign>
  211.         <font>Geneva</font>
  212.         <textSize>12</textSize>
  213.         <textStyle>plain</textStyle>
  214.         <textHeight>16</textHeight>
  215.         <name>ButtBack</name>
  216.         <script></script>
  217.     </part>
  218.     <part>
  219.         <id>13</id>
  220.         <type>field</type>
  221.         <visible> <false /> </visible>
  222.         <dontWrap> <false /> </dontWrap>
  223.         <dontSearch> <true /> </dontSearch>
  224.         <sharedText> <false /> </sharedText>
  225.         <fixedLineHeight> <false /> </fixedLineHeight>
  226.         <autoTab> <false /> </autoTab>
  227.         <lockText> <false /> </lockText>
  228.         <rect>
  229.             <left>33</left>
  230.             <top>81</top>
  231.             <right>233</right>
  232.             <bottom>166</bottom>
  233.         </rect>
  234.         <style>rectangle</style>
  235.         <autoSelect> <false /> </autoSelect>
  236.         <showLines> <false /> </showLines>
  237.         <wideMargins> <false /> </wideMargins>
  238.         <multipleLines> <false /> </multipleLines>
  239.         <reservedFamily> 0 </reservedFamily>
  240.         <titleWidth>0</titleWidth>
  241.         <icon>0</icon>
  242.         <textAlign>left</textAlign>
  243.         <font>Geneva</font>
  244.         <textSize>12</textSize>
  245.         <textStyle>plain</textStyle>
  246.         <textHeight>16</textHeight>
  247.         <name>HyperTint OverView</name>
  248.         <script></script>
  249.     </part>
  250.     <part>
  251.         <id>14</id>
  252.         <type>field</type>
  253.         <visible> <false /> </visible>
  254.         <dontWrap> <false /> </dontWrap>
  255.         <dontSearch> <true /> </dontSearch>
  256.         <sharedText> <false /> </sharedText>
  257.         <fixedLineHeight> <false /> </fixedLineHeight>
  258.         <autoTab> <false /> </autoTab>
  259.         <lockText> <false /> </lockText>
  260.         <rect>
  261.             <left>35</left>
  262.             <top>130</top>
  263.             <right>235</right>
  264.             <bottom>215</bottom>
  265.         </rect>
  266.         <style>rectangle</style>
  267.         <autoSelect> <false /> </autoSelect>
  268.         <showLines> <false /> </showLines>
  269.         <wideMargins> <false /> </wideMargins>
  270.         <multipleLines> <false /> </multipleLines>
  271.         <reservedFamily> 0 </reservedFamily>
  272.         <titleWidth>0</titleWidth>
  273.         <icon>0</icon>
  274.         <textAlign>left</textAlign>
  275.         <font>Geneva</font>
  276.         <textSize>12</textSize>
  277.         <textStyle>plain</textStyle>
  278.         <textHeight>16</textHeight>
  279.         <name>XCMD Reference</name>
  280.         <script></script>
  281.     </part>
  282.     <part>
  283.         <id>15</id>
  284.         <type>field</type>
  285.         <visible> <false /> </visible>
  286.         <dontWrap> <false /> </dontWrap>
  287.         <dontSearch> <true /> </dontSearch>
  288.         <sharedText> <false /> </sharedText>
  289.         <fixedLineHeight> <false /> </fixedLineHeight>
  290.         <autoTab> <false /> </autoTab>
  291.         <lockText> <false /> </lockText>
  292.         <rect>
  293.             <left>124</left>
  294.             <top>89</top>
  295.             <right>324</right>
  296.             <bottom>174</bottom>
  297.         </rect>
  298.         <style>rectangle</style>
  299.         <autoSelect> <false /> </autoSelect>
  300.         <showLines> <false /> </showLines>
  301.         <wideMargins> <false /> </wideMargins>
  302.         <multipleLines> <false /> </multipleLines>
  303.         <reservedFamily> 0 </reservedFamily>
  304.         <titleWidth>0</titleWidth>
  305.         <icon>0</icon>
  306.         <textAlign>left</textAlign>
  307.         <font>Geneva</font>
  308.         <textSize>12</textSize>
  309.         <textStyle>plain</textStyle>
  310.         <textHeight>16</textHeight>
  311.         <name>Notes and Tips</name>
  312.         <script></script>
  313.     </part>
  314.     <part>
  315.         <id>16</id>
  316.         <type>field</type>
  317.         <visible> <false /> </visible>
  318.         <dontWrap> <false /> </dontWrap>
  319.         <dontSearch> <true /> </dontSearch>
  320.         <sharedText> <false /> </sharedText>
  321.         <fixedLineHeight> <false /> </fixedLineHeight>
  322.         <autoTab> <false /> </autoTab>
  323.         <lockText> <false /> </lockText>
  324.         <rect>
  325.             <left>124</left>
  326.             <top>89</top>
  327.             <right>324</right>
  328.             <bottom>174</bottom>
  329.         </rect>
  330.         <style>rectangle</style>
  331.         <autoSelect> <false /> </autoSelect>
  332.         <showLines> <false /> </showLines>
  333.         <wideMargins> <false /> </wideMargins>
  334.         <multipleLines> <false /> </multipleLines>
  335.         <reservedFamily> 0 </reservedFamily>
  336.         <titleWidth>0</titleWidth>
  337.         <icon>0</icon>
  338.         <textAlign>left</textAlign>
  339.         <font>Geneva</font>
  340.         <textSize>12</textSize>
  341.         <textStyle>plain</textStyle>
  342.         <textHeight>16</textHeight>
  343.         <name>About HyperTint</name>
  344.         <script></script>
  345.     </part>
  346.     <part>
  347.         <id>17</id>
  348.         <type>field</type>
  349.         <visible> <false /> </visible>
  350.         <dontWrap> <false /> </dontWrap>
  351.         <dontSearch> <true /> </dontSearch>
  352.         <sharedText> <false /> </sharedText>
  353.         <fixedLineHeight> <false /> </fixedLineHeight>
  354.         <autoTab> <false /> </autoTab>
  355.         <lockText> <false /> </lockText>
  356.         <rect>
  357.             <left>40</left>
  358.             <top>91</top>
  359.             <right>254</right>
  360.             <bottom>233</bottom>
  361.         </rect>
  362.         <style>rectangle</style>
  363.         <autoSelect> <false /> </autoSelect>
  364.         <showLines> <false /> </showLines>
  365.         <wideMargins> <false /> </wideMargins>
  366.         <multipleLines> <false /> </multipleLines>
  367.         <reservedFamily> 0 </reservedFamily>
  368.         <titleWidth>0</titleWidth>
  369.         <icon>0</icon>
  370.         <textAlign>left</textAlign>
  371.         <font>Geneva</font>
  372.         <textSize>12</textSize>
  373.         <textStyle>plain</textStyle>
  374.         <textHeight>16</textHeight>
  375.         <name>Title Card</name>
  376.         <script></script>
  377.     </part>
  378.     <content>
  379.         <layer>card</layer>
  380.         <id>10</id>
  381.         <text>28901,29316,29005</text>
  382.     </content>
  383.     <content>
  384.         <layer>card</layer>
  385.         <id>9</id>
  386.         <text>45700,2655,5276</text>
  387.     </content>
  388.     <content>
  389.         <layer>card</layer>
  390.         <id>17</id>
  391.         <text>Title card
  392. -
  393. HyperTint Overview
  394. XCMD Reference
  395. Notes and Tips
  396. About HyperTint
  397. </text>
  398.     </content>
  399.     <content>
  400.         <layer>background</layer>
  401.         <id>1</id>
  402.         <text>title card</text>
  403.     </content>
  404.     <content>
  405.         <layer>card</layer>
  406.         <id>13</id>
  407.         <text>About This Demo
  408. An Overview of This Stack
  409. How to Navigate Through This Stack
  410. HyperTint Features
  411. Backdrops
  412. Colorizing with HyperTint
  413. Color Regions
  414. Color Schemes
  415. Visual Effects
  416. Text Optimizations
  417. Making Authoring Easier
  418. System Requirements
  419. Memory Requirements
  420. </text>
  421.     </content>
  422.     <content>
  423.         <layer>card</layer>
  424.         <id>14</id>
  425.         <text>HyperTint XCMD
  426. Color Specifier Examples
  427. HTChangePict XCMD
  428. HTAddPict XCMD
  429. HTAddPict Option Examples
  430. Color Region Examples
  431. HTVisual XCMD
  432. Visual Effect Examples
  433. Button and Field Visual Effect Examples
  434. Additional Cards in Documentation Stack
  435. </text>
  436.     </content>
  437.     <content>
  438.         <layer>card</layer>
  439.         <id>15</id>
  440.         <text>Moving Things Around
  441. Assigning Colors Interactively
  442. What Stays Black and White?
  443. Reducing Memory Requirements
  444. Compatibility with Future HyperCard Versions
  445. Additional Cards in Documentation Stack
  446. </text>
  447.     </content>
  448.     <content>
  449.         <layer>card</layer>
  450.         <id>16</id>
  451.         <text>Symplex Systems
  452. Distribution of this Demo
  453. Ordering Info 
  454. HyperTint Order Form
  455. HyperTint License Agreement
  456. </text>
  457.     </content>
  458.     <name>Title Card</name>
  459.     <script>on openCard
  460. addRecent "Title Card"
  461. selectTopicMenu
  462. end openCard</script>
  463. </card>
  464.  
  465.  
  466. card_4709.xml
  467. <?xml version="1.0" encoding="utf-8" ?>
  468. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  469. <card>
  470.     <id>4709</id>
  471.     <filler1>0</filler1>
  472.     <cantDelete> <false /> </cantDelete>
  473.     <showPict> <true /> </showPict>
  474.     <dontSearch> <false /> </dontSearch>
  475.     <owner>4603</owner>
  476.     <link rel="stylesheet" type="text/css" href="stylesheet_3268.css" />
  477.     <part>
  478.         <id>19</id>
  479.         <type>button</type>
  480.         <visible> <true /> </visible>
  481.         <reserved5> 0 </reserved5>
  482.         <reserved4> 0 </reserved4>
  483.         <reserved3> 0 </reserved3>
  484.         <reserved2> 0 </reserved2>
  485.         <reserved1> 0 </reserved1>
  486.         <enabled> <true /> </enabled>
  487.         <rect>
  488.             <left>346</left>
  489.             <top>268</top>
  490.             <right>448</right>
  491.             <bottom>280</bottom>
  492.         </rect>
  493.         <style>transparent</style>
  494.         <showName> <true /> </showName>
  495.         <highlight> <false /> </highlight>
  496.         <autoHighlight> <false /> </autoHighlight>
  497.         <sharedHighlight> <true /> </sharedHighlight>
  498.         <family>0</family>
  499.         <titleWidth>0</titleWidth>
  500.         <icon>0</icon>
  501.         <textAlign>center</textAlign>
  502.         <font>Geneva</font>
  503.         <textSize>9</textSize>
  504.         <textStyle>bold</textStyle>
  505.         <name>More Topics...</name>
  506.         <script>on mouseUp
  507. send mouseUp to background button "GoRight"
  508. end mouseUp</script>
  509.     </part>
  510.     <content>
  511.         <layer>background</layer>
  512.         <id>10</id>
  513.         <text><span class="style1"><a href="#" class="group">bout This Demo</a></span><span class="style2">
  514. </span><span class="style1"><a href="#" class="group">An Overview of This Stack</a></span><span class="style2">
  515. </span><span class="style1"><a href="#" class="group">How to Navigate Through This Stack</a></span><span class="style2">
  516. </span><span class="style1"><a href="#" class="group">HyperTint Features</a></span><span class="style2">
  517. </span><span class="style1"><a href="#" class="group">Backdrops</a></span><span class="style2">
  518. </span><span class="style1"><a href="#" class="group">Colorizing with HyperTint</a></span><span class="style2">
  519. </span><span class="style1"><a href="#" class="group">Color Regions</a></span><span class="style2">
  520. </span><span class="style1"><a href="#" class="group">Color Schemes</a></span><span class="style2">
  521. </span><span class="style1"><a href="#" class="group">Visual Effects</a></span></text>
  522.     </content>
  523.     <content>
  524.         <layer>background</layer>
  525.         <id>11</id>
  526.         <text>HyperTint Overview</text>
  527.     </content>
  528.     <content>
  529.         <layer>background</layer>
  530.         <id>12</id>
  531.         <text>HyperTint Overview</text>
  532.     </content>
  533.     <name>HyperTint Overview</name>
  534.     <script></script>
  535. </card>
  536.  
  537.  
  538. card_25776.xml
  539. <?xml version="1.0" encoding="utf-8" ?>
  540. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  541. <card>
  542.     <id>25776</id>
  543.     <filler1>0</filler1>
  544.     <cantDelete> <false /> </cantDelete>
  545.     <showPict> <true /> </showPict>
  546.     <dontSearch> <false /> </dontSearch>
  547.     <owner>4603</owner>
  548.     <link rel="stylesheet" type="text/css" href="stylesheet_3268.css" />
  549.     <content>
  550.         <layer>background</layer>
  551.         <id>10</id>
  552.         <text><span class="style1"><a href="#" class="group">ext Optimizations</a></span><span class="style2">
  553. </span><span class="style1"><a href="#" class="group">Making Authoring Easier</a></span><span class="style2">
  554. </span><span class="style1"><a href="#" class="group">System Requirements</a></span><span class="style2">
  555. </span><span class="style1"><a href="#" class="group">Memory Requirements</a></span><span class="style2">
  556. </span></text>
  557.     </content>
  558.     <content>
  559.         <layer>background</layer>
  560.         <id>11</id>
  561.         <text>HyperTint Overview (2)</text>
  562.     </content>
  563.     <content>
  564.         <layer>background</layer>
  565.         <id>12</id>
  566.         <text>HyperTint Overview</text>
  567.     </content>
  568.     <name>HyperTint Overview (2)</name>
  569.     <script></script>
  570. </card>
  571.  
  572.  
  573. card_9029.xml
  574. <?xml version="1.0" encoding="utf-8" ?>
  575. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  576. <card>
  577.     <id>9029</id>
  578.     <filler1>0</filler1>
  579.     <cantDelete> <false /> </cantDelete>
  580.     <showPict> <true /> </showPict>
  581.     <dontSearch> <false /> </dontSearch>
  582.     <owner>3997</owner>
  583.     <link rel="stylesheet" type="text/css" href="stylesheet_3268.css" />
  584.     <content>
  585.         <layer>background</layer>
  586.         <id>4</id>
  587.         <text>About This Demo</text>
  588.     </content>
  589.     <content>
  590.         <layer>background</layer>
  591.         <id>6</id>
  592.         <text><span class="style2">his stack provides a demonstration of HyperTint, a set of XCMDs and XFCNs that can be used to add color to HyperCard.  
  593.  
  594. This demo stack is based on the full HyperTint documentation stack that purchasers will receive, but many cards have been deleted from this demo.
  595.  
  596. The XCMDs and XFCNs in this demo are designed to work only in this demo stack.  Some XCMDs and XFCNs, including </span><span class="style1"><a href="#" class="group">HTWriteScheme</a></span><span class="style2"> and </span><span class="style1"><a href="#" class="group">HTRClear</a></span><span class="style2">,  are not included in this demo.  As well, XCMD options that are not required by the scripts in this stack have been disabled.
  597.  
  598. The copyright banner at the top of the card window appears only in the demo version.</span></text>
  599.     </content>
  600.     <content>
  601.         <layer>background</layer>
  602.         <id>10</id>
  603.         <text>HyperTint Overview</text>
  604.     </content>
  605.     <content>
  606.         <layer>background</layer>
  607.         <id>8</id>
  608.         <text>
  609. HTWriteScheme
  610. HTRClear
  611. </text>
  612.     </content>
  613.     <content>
  614.         <layer>background</layer>
  615.         <id>9</id>
  616.         <text>
  617. 8205
  618. 6017
  619. </text>
  620.     </content>
  621.     <name>About This Demo</name>
  622.     <script></script>
  623. </card>
  624.  
  625.  
  626. card_7847.xml
  627. <?xml version="1.0" encoding="utf-8" ?>
  628. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  629. <card>
  630.     <id>7847</id>
  631.     <filler1>0</filler1>
  632.     <cantDelete> <false /> </cantDelete>
  633.     <showPict> <true /> </showPict>
  634.     <dontSearch> <false /> </dontSearch>
  635.     <owner>3997</owner>
  636.     <link rel="stylesheet" type="text/css" href="stylesheet_3268.css" />
  637.     <content>
  638.         <layer>background</layer>
  639.         <id>4</id>
  640.         <text>An Overview of This Stack</text>
  641.     </content>
  642.     <content>
  643.         <layer>background</layer>
  644.         <id>6</id>
  645.         <text><span class="style2">yperTint is a set of XCMDs and XFCNs that are used to add color to HyperCard 2.x stacks.  These commands have all sorts of weird and wonderful options to make life easier for the HyperTalk scripter or to handle some special cases.
  646.  
  647. This stack is divided into four sections.
  648.  
  649. </span><span class="style21">HyperTint Overview</span><span class="style2">
  650.  
  651. This section tries to give an overview of HyperTint without burying the reader under an avalanche of detail.
  652.  
  653. This demo contains the complete ΓÇ£HyperTint OverviewΓÇ¥ section that is contained in the HyperTint documentation stack.
  654.  
  655. </span><span class="style21">XCMD Reference</span><span class="style12">
  656.  
  657. </span><span class="style2">The </span><span class="style22"><a href="#" class="group">XCMD Reference</a></span><span class="style2"> section contains detailed information on each HyperTint command or function.  All those weird and wonderful options are described in this section.  Example cards are sprinkled through this section to demonstrate the use of the commands.
  658.  
  659. Most of the cards in this section have been removed from this demo, but a few of the command descriptions and example cards are left.
  660.  
  661. </span><span class="style21">Notes and Tips</span><span class="style2">
  662.  
  663. The </span><span class="style22"><a href="#" class="group">Notes and Tips</a></span><span class="style2"> section has tips on making HyperTint easier to use and ways to handle problems that may occur.  It also provides information about how this stack makes use of HyperTint.
  664.  
  665. Most of the cards in this section have been removed from this demo, but we've tried to keep the cards that can help buyers gauge the usefulness of HyperTint.
  666.  
  667. </span><span class="style21">About HyperTint ΓǪ</span><span class="style9">
  668. </span><span class="style2">
  669. The </span><span class="style22"><a href="#" class="group">About HyperTint ΓǪ</a></span><span class="style2"> section contains information about how  how to order HyperTint and how to contact Symplex Systems.
  670.  
  671. This section of the ΓÇ£fullΓÇ¥ HyperTint documentation stack also discusses the telephone and e-mail technical support available to purchasers.
  672. </span></text>
  673.     </content>
  674.     <content>
  675.         <layer>background</layer>
  676.         <id>8</id>
  677.         <text>
  678. XCMD Reference
  679. Notes and Tips
  680. About HyperTint ΓǪ
  681. </text>
  682.     </content>
  683.     <content>
  684.         <layer>background</layer>
  685.         <id>9</id>
  686.         <text>
  687. 6550
  688. 8686
  689. 18735
  690. </text>
  691.     </content>
  692.     <content>
  693.         <layer>background</layer>
  694.         <id>10</id>
  695.         <text>HyperTint Overview</text>
  696.     </content>
  697.     <name>An Overview of This Stack</name>
  698.     <script></script>
  699. </card>
  700.  
  701.  
  702. card_25077.xml
  703. <?xml version="1.0" encoding="utf-8" ?>
  704. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  705. <card>
  706.     <id>25077</id>
  707.     <filler1>0</filler1>
  708.     <cantDelete> <false /> </cantDelete>
  709.     <showPict> <true /> </showPict>
  710.     <dontSearch> <false /> </dontSearch>
  711.     <owner>3997</owner>
  712.     <link rel="stylesheet" type="text/css" href="stylesheet_3268.css" />
  713.     <content>
  714.         <layer>background</layer>
  715.         <id>4</id>
  716.         <text><span class="style24">ow to Navigate Through This Stack</span></text>
  717.     </content>
  718.     <content>
  719.         <layer>background</layer>
  720.         <id>6</id>
  721.         <text><span class="style2">he arrow buttons at the top of the card will allow you to move through the stack linearly.  This is the recommended route on the first journey through the stack.
  722.  
  723. The buttons on the title card jump to the start of each section.  Each section starts with section content cards which list all the cards in that section.  Clicking on one of the names in the list will jump to that card.
  724.  
  725. Two menus provide an alternative way to navigate.  The ΓÇ£TopicsΓÇ¥ menu allows jumping between sections or between cards in each section.  The contents of this menu change, depending on the current section.  The current section will have a ΓÇ£ΓÇóΓÇ¥ placed beside its menu item.  The current card will have a checkmark placed next to it.  Selecting a menu item jumps directly to that card.
  726.  
  727. The ΓÇ£RecentΓÇ¥ menu keeps track of the last 15 cards visited.  Selecting a menu item will jump back to one of the recent cards.
  728.  
  729. Some cards have additional buttons that link to other cards.  HyperCard's ΓÇ£hot textΓÇ¥ feature can be used to jump to related topics.  Hot text can be recognized, because it is underlined </span><span class="style22"><a href="#" class="group">like this</a></span><span class="style2">.  </span><span class="style12">Demo note:  because this demo version does not contain all the cards in the real HyperTint stack,  most of the hot text links have been removed from the demo</span><span class="style2">.</span></text>
  730.     </content>
  731.     <content>
  732.         <layer>background</layer>
  733.         <id>10</id>
  734.         <text>HyperTint Overview</text>
  735.     </content>
  736.     <content>
  737.         <layer>background</layer>
  738.         <id>8</id>
  739.         <text>
  740. like this
  741. </text>
  742.     </content>
  743.     <content>
  744.         <layer>background</layer>
  745.         <id>9</id>
  746.         <text>
  747. S answer "This is just an example.  It doesn't go anywhere."
  748. </text>
  749.     </content>
  750.     <name>How to Navigate Through T</name>
  751.     <script></script>
  752. </card>
  753.  
  754.  
  755. card_6822.xml
  756. <?xml version="1.0" encoding="utf-8" ?>
  757. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  758. <card>
  759.     <id>6822</id>
  760.     <filler1>0</filler1>
  761.     <cantDelete> <false /> </cantDelete>
  762.     <showPict> <true /> </showPict>
  763.     <dontSearch> <false /> </dontSearch>
  764.     <owner>3997</owner>
  765.     <link rel="stylesheet" type="text/css" href="stylesheet_3268.css" />
  766.     <content>
  767.         <layer>background</layer>
  768.         <id>4</id>
  769.         <text>HyperTint Features</text>
  770.     </content>
  771.     <content>
  772.         <layer>background</layer>
  773.         <id>6</id>
  774.         <text>HyperTint provides a set of XCMDs for adding color to HyperCard 2.0/2.1.  Some of its features are:
  775.  
  776. ΓÇó A color picture can be displayed in HyperCard's card window.  This picture coexists with the display produced by HyperCard:  HyperCard's paint, buttons, and fields are overlaid on top of the color picture.  Because the color image is not detected by HyperCard, no trickery is required to pass mouse clicks through to buttons and fields.
  777.  
  778. ΓÇó Different sections of the card can be assigned individual foreground and background colors, so that colored buttons and fields can be simulated.
  779.  
  780. ΓÇó Color visual effects are supported so that users are provided with familiar visual cues when exploring a stack.
  781.  
  782. ΓÇó The implementation is optimized so that stacks with complex color layouts can be supported without placing an undue performance burden on those stacks with simple color requirements.
  783.  
  784. ΓÇó A quick way of quickly switching between color layouts is supported.
  785.  
  786. ΓÇó HyperCard's text handling is optimized so that typing and scrolling speeds are still acceptable, even with the additional overhead of color.
  787.  
  788. ΓÇó If a backdrop color picture is not required, HyperTint can reduce its memory requirements but still support the assignment of foreground and background colors to various sections of the screen.</text>
  789.     </content>
  790.     <content>
  791.         <layer>background</layer>
  792.         <id>10</id>
  793.         <text>HyperTint Overview</text>
  794.     </content>
  795.     <name>HyperTint Features</name>
  796.     <script></script>
  797. </card>
  798.  
  799.  
  800. card_6946.xml
  801. <?xml version="1.0" encoding="utf-8" ?>
  802. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  803. <card>
  804.     <id>6946</id>
  805.     <filler1>0</filler1>
  806.     <cantDelete> <false /> </cantDelete>
  807.     <showPict> <true /> </showPict>
  808.     <dontSearch> <false /> </dontSearch>
  809.     <owner>3997</owner>
  810.     <link rel="stylesheet" type="text/css" href="stylesheet_3268.css" />
  811.     <content>
  812.         <layer>background</layer>
  813.         <id>4</id>
  814.         <text>Backdrops</text>
  815.     </content>
  816.     <content>
  817.         <layer>background</layer>
  818.         <id>6</id>
  819.         <text>An important aspect of HyperTint is its support for backdrop pictures.  HyperCard already supports the concept of a background image (with paint, buttons, and fields) and a card image (with more paint, buttons, and fields).  The card image is overlaid on top of the background to produce the final screen display that is shown to the user.  HyperCard allows portions of the card image to be either transparent or opaque.  For this discussion, we will use the term ΓÇ£HyperCard imageΓÇ¥:  this is the image that is displayed  on the screen, after HyperCard has overlaid the card on the background and accounted for the opaque and transparent sections of the card.
  820.  
  821. HyperTint adds a new layer:  the backdrop layer.  The backdrop is placed beneath the background image.  After HyperCard works its magic to produce the HyperCard image, HyperTint takes the HyperCard image and lays it over the backdrop picture.  By default, HyperTint treats the entire HyperCard image as transparent:  the backdrop picture will ΓÇ£show throughΓÇ¥ wherever the HyperCard image has white pixels. 
  822.  
  823. Through the use of color regions, discussed later, it is also possible to specify that portions of the HyperCard image should be treated as opaque, with any desired background color.
  824.  
  825. This combined image, with the HyperCard image overlaid on the backdrop, is displayed in the card window.  If the window is moved or a change is made, the color image automatically updates itself.
  826.  
  827.  
  828. </text>
  829.     </content>
  830.     <content>
  831.         <layer>background</layer>
  832.         <id>10</id>
  833.         <text>HyperTint Overview</text>
  834.     </content>
  835.     <name>Backdrops</name>
  836.     <script></script>
  837. </card>
  838.  
  839.  
  840. card_2430.xml
  841. <?xml version="1.0" encoding="utf-8" ?>
  842. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  843. <card>
  844.     <id>2430</id>
  845.     <filler1>0</filler1>
  846.     <cantDelete> <false /> </cantDelete>
  847.     <showPict> <true /> </showPict>
  848.     <dontSearch> <false /> </dontSearch>
  849.     <owner>3997</owner>
  850.     <link rel="stylesheet" type="text/css" href="stylesheet_3268.css" />
  851.     <content>
  852.         <layer>background</layer>
  853.         <id>4</id>
  854.         <text>Colorizing with HyperTint</text>
  855.     </content>
  856.     <content>
  857.         <layer>background</layer>
  858.         <id>6</id>
  859.         <text><span class="style2">o invoke HyperTint for a stack window,  the </span><span class="style1"><a href="#" class="group">HyperTint</a></span><span class="style2"> command is used.  The HyperTint command requires the name or number of a picture (PICT) resource that will be used as the backdrop picture.  For instance,
  860.  
  861.     HyperTint 1254
  862.  
  863. would look for a picture with a resource ID 1254 to use as the stack's backdrop.  The call to install HyperTint in the current card window would normally be contained in the stack's </span><span class="style7">openStack </span><span class="style2">handler.
  864.  
  865. The backdrop picture being used can be changed using the </span><span class="style1"><a href="#" class="group">HTChangePict</a></span><span class="style2"> command.  For instance,
  866.  
  867.      </span><span class="style7">HTChangePict "Image 2"
  868.  
  869. </span><span class="style2">will use the PICT resource named ΓÇ£Image 2ΓÇ¥ as the new backdrop image.  This will usually be done when switching between backgrounds which use different backdrop pictures, although it can be done when switching between cards (or at any other time).
  870.  
  871. There is also a command </span><span class="style1"><a href="#" class="group">HTAddPict</a></span><span class="style2"> that allows adding a picture on top of the existing backdrop, replacing only a specified rectangle in the backdrop picture.  The picture being added can be clipped to the size of the rectangle specified or scaled to fit the rectangle.
  872.  
  873. To turn off colorization, use the command </span><span class="style12">HTRemove.  </span><span class="style2">No parameters are required.  This is usually done as part of the stack's </span><span class="style7">closeStack</span><span class="style2"> handler.
  874.  
  875. There are also options that allow the picture to be read from a PICT file or to perform colorization of the card without a backdrop picture, which allows a substantial memory savings.
  876. </span></text>
  877.     </content>
  878.     <content>
  879.         <layer>background</layer>
  880.         <id>8</id>
  881.         <text>
  882. HyperTint
  883. HTChangePict
  884. HTAddPict
  885. </text>
  886.     </content>
  887.     <content>
  888.         <layer>background</layer>
  889.         <id>9</id>
  890.         <text>
  891. 3747
  892. 8801
  893. 12330
  894. </text>
  895.     </content>
  896.     <content>
  897.         <layer>background</layer>
  898.         <id>10</id>
  899.         <text>HyperTint Overview</text>
  900.     </content>
  901.     <name>Colorizing with HyperTint</name>
  902.     <script></script>
  903. </card>
  904.  
  905.  
  906. card_6017.xml
  907. <?xml version="1.0" encoding="utf-8" ?>
  908. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  909. <card>
  910.     <id>6017</id>
  911.     <filler1>0</filler1>
  912.     <cantDelete> <false /> </cantDelete>
  913.     <showPict> <true /> </showPict>
  914.     <dontSearch> <false /> </dontSearch>
  915.     <owner>3997</owner>
  916.     <link rel="stylesheet" type="text/css" href="stylesheet_3268.css" />
  917.     <content>
  918.         <layer>background</layer>
  919.         <id>4</id>
  920.         <text>Color Regions</text>
  921.     </content>
  922.     <content>
  923.         <layer>background</layer>
  924.         <id>6</id>
  925.         <text><span class="style2">yperTint also allows the scripter to specify colors for various buttons, for paint text, or for the text in a field.  This is done by adding rectangles to ΓÇ£color regions.ΓÇ¥
  926.  
  927. A color region consists of one or more rectangles (or rounded rectangles) specifying sections of the card.  A background and a foreground color can be specified for each color region.  Any pixel in a color region that uncolorized HyperCard would display as white will instead be displayed as the background color for that region.  Any pixel in a color region that uncolorized HyperCard would display as black will instead be displayed as the foreground color for that region.  HyperTint can support up to 10 color regions, although there is a performance penalty for each additional region used.  
  928.  
  929. The background color can also be set to ΓÇ£</span><span class="style22"><a href="#" class="group">transparent</a></span><span class="style2">ΓÇ¥.  This allows placing colored text and graphics over the backdrop picture:  instead of a solid background color, the backdrop picture would show through wherever uncolorized HyperCard would display white.
  930.  
  931. Regions will often consist of only a single rectangle, but each region can contain multiple rectangles, scattered anywhere over the card.
  932.  
  933. HyperTint commands include features that make it easy to match color regions to buttons and fields, but it is important to realize that HyperTint really doesn't know anything about buttons and fields.  It deals only in raw rectangle coordinates.  "3,32,437,275" may be the rectangle for this field, but if I move the field, HyperTint does not notice the change.  It will merrily keep on colorizing  the rectangle "3,32,437,275" until I invoke the commands that remove the old field rectangle from the region and add the new rectangle.
  934.  
  935. This is also important if buttons or fields are dynamically hidden or shown:  in addition to hiding or showing the field, it is necessary to also include the commands that will remove or add the field's rectangle from the appropriate color region.  The XCMD Reference section of this stack has some ΓÇ£</span><span class="style22"><a href="#" class="group">showing/hiding</a></span><span class="style2">ΓÇ¥ examples.  The Notes and Tips section has ideas to </span><span class="style22"><a href="#" class="group">reduce the hassles of changing color layouts</a></span><span class="style2">.
  936.  
  937. The commands that deal with color regions all start with the letters HTR (for ΓÇ£HyperTint RegionΓÇ¥).  The first parameter is always a number between 1 and 10 that indicates which color region will be affected.  The remaining parameters depend on the command.  The commands are described in detail in the XCMD Reference section of this stack.
  938.  
  939. Each color region can have its foreground and background colors specified:
  940. </span><span class="style10">     HTRForeColor  <region number>,<color specifier>
  941.      HTRBackColor  <region number>,<color specifier>
  942. </span><span class="style2">
  943. Color regions are built ΓÇ£on the fly.ΓÇ¥  Each color region starts off empty, with nothing.  An empty region causes very little performance penalty.   There are two commands to add areas to the color regions.  HTRAddRect adds rectangles and HTRAddRRect adds rounded corner rectangles (which match HyperCard's ΓÇ£round rectangleΓÇ¥ button type.)
  944. </span><span class="style13">
  945. </span><span class="style10">     HTRAddRect <region number>,<rectangle>, <rectangle>, ....
  946.      HTRAddRRect <region number>,<rectangle>, <rectangle>, ....
  947. </span><span class="style11">
  948. </span><span class="style2">To make easier to deal with buttons and fields, these commands have options to adjust the coordinates that are passed.  This makes it easier to choose, for instance, whether a field should have its border colorized.
  949.  
  950. Areas can also be removed from the colorized regions:
  951. </span><span class="style10">     HTRSubRect <region number>,<rectangle>, <rectangle>, ....
  952.      HTRSubRRect <region number>,<rectangle>, <rectangle>, ....
  953.      HTRClear <region number>
  954.  
  955. </span><span class="style2">HTRSubRect and HTRSubRRect are the counterparts to HTRAddRect and HTRAddRRect:  these commands could be used when hiding a </span><span class="style22"><a href="#" class="group">popup field</a></span><span class="style2"> or a </span><span class="style22"><a href="#" class="group">button</a></span><span class="style2">.  HTRClear provides a fast way of removing everything from a color region so that it is once again empty:  this command commonly would be used when leaving a card whose scripts have dynamically added areas to a separate color region.
  956.  
  957. This card contains three color regions.  The text in this field is contained in one region.  The title at the top is in another region.  The two arrow buttons belong to a third region.
  958.  
  959. By the way, I'm a programmer, not a graphic artist.  If you think the colors chosen create the ugliest thing ever seen in this universe, the Notes and Tips section describes a button panel, invoked by the command </span><span class="style26"><a href="#" class="group">cc</a></span><span class="style2">, which allows interactively trying out new colors.  Disclaimer:  while the button panel is my creation,  I take no responsibility for the aesthetic violence cause by inappropriate use of this tool.</span></text>
  960.     </content>
  961.     <content>
  962.         <layer>background</layer>
  963.         <id>8</id>
  964.         <text>
  965. cc
  966. transparent
  967. showing/hiding
  968. reduce the hassles of changing color layouts
  969. popup field
  970. button
  971. </text>
  972.     </content>
  973.     <content>
  974.         <layer>background</layer>
  975.         <id>9</id>
  976.         <text>
  977. 15926
  978. S demoTransparent
  979. S DemoShowHide
  980. 5160
  981. S demoShowHide
  982. S demoButtonHide
  983. </text>
  984.     </content>
  985.     <content>
  986.         <layer>background</layer>
  987.         <id>10</id>
  988.         <text>HyperTint Overview</text>
  989.     </content>
  990.     <name>Color Regions</name>
  991.     <script>on demoTransparent
  992. -- This script jumps to the title card and switches
  993. -- the buttons so that they are transparent
  994.  
  995. -- Keep track of where the user was reading
  996. put the  scroll of field "Doc" into saveScroll
  997. push card
  998. go first card
  999. put HTRCurrBC(1) into saveBackcolor
  1000. HTRBackground 1,"transparent","noDelay"
  1001.  
  1002. repeat
  1003. if HTRCurrBC(1) is "transparent" then
  1004. put "The buttons on this card have been made transparent."┬¼
  1005. & "  Notice how the picture shows through." into prompt
  1006. else
  1007. put "The buttons now have their original gray background."┬¼
  1008. into prompt
  1009. end if
  1010.  
  1011. answer prompt with "Gray" or "Transparent" or "Go back"
  1012.  
  1013. if it is "Gray" then
  1014. HTRBackground 1,saveBackcolor,"noDelay" -- put back the old color
  1015. else if it is "Transparent" then
  1016. HTRBackground 1,"transparent","noDelay" -- make it transparent again
  1017. else
  1018. exit repeat
  1019. end if
  1020. end repeat
  1021.  
  1022. pop card
  1023. set the  scroll of field "Doc" to saveScroll
  1024.  
  1025.  
  1026. end demoTransparent
  1027.  
  1028. on demoShowHide
  1029. put the  scroll of field "Doc" into saveScroll
  1030.  
  1031. go to card "Color region examples"
  1032. send mouseup to button "Show Popup"
  1033. wait 30 ticks
  1034. send mouseDown to card field "popup"
  1035. wait 30 ticks
  1036. go back
  1037. set the  scroll of field "Doc" to saveScroll
  1038. end demoShowHide
  1039.  
  1040. on demoButtonHide
  1041. put the  scroll of field "Doc" into saveScroll
  1042.  
  1043. go to card (char 1 to 25 of "Button and Field Visual Effect Examples")
  1044. send mouseup to button "Button Blend"
  1045. wait 15 ticks
  1046. go back
  1047. set the  scroll of field "Doc" to saveScroll
  1048. end demoButtonHide</script>
  1049. </card>
  1050.  
  1051.  
  1052. card_8205.xml
  1053. <?xml version="1.0" encoding="utf-8" ?>
  1054. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  1055. <card>
  1056.     <id>8205</id>
  1057.     <filler1>0</filler1>
  1058.     <cantDelete> <false /> </cantDelete>
  1059.     <showPict> <true /> </showPict>
  1060.     <dontSearch> <false /> </dontSearch>
  1061.     <owner>3997</owner>
  1062.     <link rel="stylesheet" type="text/css" href="stylesheet_3268.css" />
  1063.     <content>
  1064.         <layer>background</layer>
  1065.         <id>4</id>
  1066.         <text>Color Schemes</text>
  1067.     </content>
  1068.     <content>
  1069.         <layer>background</layer>
  1070.         <id>6</id>
  1071.         <text><span class="style2">s the color layouts get more elaborate, with more buttons and fields being colorized, the time required for a script to create the color layouts increases.  Users do not like having to wait for a couple of seconds when jumping between backgrounds or cards.  To provide a fast method of changing color layouts, HyperTint added the concept of color schemes.  A color scheme records the current backdrop picture being used, as well the areas of the card window belonging to each color region and the foreground and background colors assigned to each color region.  A new color scheme can be installed with a single command, </span><span class="style12">HTColorScheme</span><span class="style2">.  Color schemes are stored as resources in the stack's resource file.
  1072.  
  1073. When authoring a stack, the current color layout can be saved as a color scheme by using the command </span><span class="style12">HTWriteScheme</span><span class="style2">.  This command will create a color scheme resource that will be saved in the stack's resource file.
  1074.  
  1075. </span></text>
  1076.     </content>
  1077.     <content>
  1078.         <layer>background</layer>
  1079.         <id>8</id>
  1080.         <text>
  1081. </text>
  1082.     </content>
  1083.     <content>
  1084.         <layer>background</layer>
  1085.         <id>9</id>
  1086.         <text>
  1087. </text>
  1088.     </content>
  1089.     <content>
  1090.         <layer>background</layer>
  1091.         <id>10</id>
  1092.         <text>HyperTint Overview</text>
  1093.     </content>
  1094.     <name>Color Schemes</name>
  1095.     <script></script>
  1096. </card>
  1097.  
  1098.  
  1099. card_9289.xml
  1100. <?xml version="1.0" encoding="utf-8" ?>
  1101. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  1102. <card>
  1103.     <id>9289</id>
  1104.     <filler1>0</filler1>
  1105.     <cantDelete> <false /> </cantDelete>
  1106.     <showPict> <true /> </showPict>
  1107.     <dontSearch> <false /> </dontSearch>
  1108.     <owner>3997</owner>
  1109.     <link rel="stylesheet" type="text/css" href="stylesheet_3268.css" />
  1110.     <part>
  1111.         <id>1</id>
  1112.         <type>button</type>
  1113.         <visible> <true /> </visible>
  1114.         <reserved5> 0 </reserved5>
  1115.         <reserved4> 0 </reserved4>
  1116.         <reserved3> 0 </reserved3>
  1117.         <reserved2> 0 </reserved2>
  1118.         <reserved1> 0 </reserved1>
  1119.         <enabled> <true /> </enabled>
  1120.         <rect>
  1121.             <left>414</left>
  1122.             <top>9</top>
  1123.             <right>446</right>
  1124.             <bottom>41</bottom>
  1125.         </rect>
  1126.         <style>transparent</style>
  1127.         <showName> <false /> </showName>
  1128.         <highlight> <false /> </highlight>
  1129.         <autoHighlight> <false /> </autoHighlight>
  1130.         <sharedHighlight> <true /> </sharedHighlight>
  1131.         <family>0</family>
  1132.         <titleWidth>0</titleWidth>
  1133.         <icon>26425</icon>
  1134.         <textAlign>center</textAlign>
  1135.         <font>Chicago</font>
  1136.         <textSize>12</textSize>
  1137.         <textStyle>plain</textStyle>
  1138.         <name>HideGoRight</name>
  1139.         <script>on mouseUp
  1140. go next card
  1141. end mouseUp</script>
  1142.     </part>
  1143.     <part>
  1144.         <id>2</id>
  1145.         <type>button</type>
  1146.         <visible> <true /> </visible>
  1147.         <reserved5> 0 </reserved5>
  1148.         <reserved4> 0 </reserved4>
  1149.         <reserved3> 0 </reserved3>
  1150.         <reserved2> 0 </reserved2>
  1151.         <reserved1> 0 </reserved1>
  1152.         <enabled> <true /> </enabled>
  1153.         <rect>
  1154.             <left>0</left>
  1155.             <top>7</top>
  1156.             <right>32</right>
  1157.             <bottom>41</bottom>
  1158.         </rect>
  1159.         <style>transparent</style>
  1160.         <showName> <false /> </showName>
  1161.         <highlight> <false /> </highlight>
  1162.         <autoHighlight> <false /> </autoHighlight>
  1163.         <sharedHighlight> <true /> </sharedHighlight>
  1164.         <family>0</family>
  1165.         <titleWidth>0</titleWidth>
  1166.         <icon>902</icon>
  1167.         <textAlign>center</textAlign>
  1168.         <font>Chicago</font>
  1169.         <textSize>12</textSize>
  1170.         <textStyle>plain</textStyle>
  1171.         <name>HideGoLeft</name>
  1172.         <script>on mouseUp
  1173. go previous card
  1174. end mouseUp</script>
  1175.     </part>
  1176.     <content>
  1177.         <layer>background</layer>
  1178.         <id>4</id>
  1179.         <text>Visual Effects</text>
  1180.     </content>
  1181.     <content>
  1182.         <layer>background</layer>
  1183.         <id>6</id>
  1184.         <text><span class="style2">he bad news is that HyperCard's visual effects are incompatible with HyperTint.  During visual effects, HyperCard draw directly to the screen which makes it rather hard for HyperTint to works its magic.
  1185.  
  1186. The good news is that HyperTint provides its own visual effects, using the </span><span class="style1"><a href="#" class="group">HTVisual</a></span><span class="style2"> command so that colorized stacks can still provide the expected visual cues.  
  1187.  
  1188. Multiple visual effects can be ΓÇ£stacked up,ΓÇ¥ just as with HyperCard's own effects.  The visual effects can be restricted to a rectangle of the card, if desired.  In addition to providing an effect transition to the new card image, colors can also be specified.
  1189.  
  1190. All the options for controlling effects are described in the XCMD Reference entry for </span><span class="style1"><a href="#" class="group">HTVisual</a></span><span class="style2">.  The ΓÇ£</span><span class="style22"><a href="#" class="group">Visual Effects Examples</a></span><span class="style2">ΓÇ¥ card demonstrates the effects for card to card transitions.
  1191. </span></text>
  1192.     </content>
  1193.     <content>
  1194.         <layer>background</layer>
  1195.         <id>8</id>
  1196.         <text>
  1197. HTVisual
  1198. example card
  1199. Visual Effects Examples
  1200. </text>
  1201.     </content>
  1202.     <content>
  1203.         <layer>background</layer>
  1204.         <id>9</id>
  1205.         <text>
  1206. 14255
  1207. 24485
  1208. 24485
  1209. </text>
  1210.     </content>
  1211.     <content>
  1212.         <layer>background</layer>
  1213.         <id>10</id>
  1214.         <text>HyperTint Overview</text>
  1215.     </content>
  1216.     <name>Visual Effects</name>
  1217.     <script>on closeCard
  1218. -- Rather silly, eh?  How's your beer?
  1219. put the rect of this card into effectRect
  1220. put item 3 of effectRect div 2 into item 3 of effectRect
  1221. put item 4 of effectRect div 2 into item 4 of effectRect
  1222. HTVisual "scroll right","65535,0,0",effectRect,0
  1223.  
  1224. put the rect of this card into effectRect
  1225. put item 3 of effectRect div 2 into item 1 of effectRect
  1226. put item 4 of effectRect div 2 into item 2 of effectRect
  1227. HTVisual "scroll left","0,65535,0",effectRect,0
  1228.  
  1229. put the rect of this card into effectRect
  1230. put item 3 of effectRect div 2 into item 1 of effectRect
  1231. put item 4 of effectRect div 2 into item 4 of effectRect
  1232. HTVisual "scroll up","65535,65535,0",effectRect,0
  1233.  
  1234. put the rect of this card into effectRect
  1235. put item 3 of effectRect div 2 into item 3 of effectRect
  1236. put item 4 of effectRect div 2 into item 2 of effectRect
  1237. HTVisual "scroll down","0,0,65535",effectRect,0
  1238.  
  1239. if the optionKey is down then
  1240. HTVisual "iris open"
  1241. else
  1242. put the rect of this card into effectRect
  1243. put item 3 of effectRect div 2 into item 3 of effectRect
  1244. put item 4 of effectRect div 2 into item 4 of effectRect
  1245. HTVisual "scroll right","card",effectRect,0
  1246.  
  1247. put the rect of this card into effectRect
  1248. put item 3 of effectRect div 2 into item 1 of effectRect
  1249. put item 4 of effectRect div 2 into item 2 of effectRect
  1250. HTVisual "scroll left","card",effectRect,0
  1251.  
  1252. put the rect of this card into effectRect
  1253. put item 3 of effectRect div 2 into item 1 of effectRect
  1254. put item 4 of effectRect div 2 into item 4 of effectRect
  1255. HTVisual "scroll up","card",effectRect,0
  1256.  
  1257. put the rect of this card into effectRect
  1258. put item 3 of effectRect div 2 into item 3 of effectRect
  1259. put item 4 of effectRect div 2 into item 2 of effectRect
  1260. HTVisual "scroll down","card",effectRect,0
  1261. end if
  1262. -- hide card field test
  1263.  
  1264. pass closeCard
  1265. end closeCard
  1266.  
  1267. </script>
  1268. </card>
  1269.  
  1270.  
  1271. card_8003.xml
  1272. <?xml version="1.0" encoding="utf-8" ?>
  1273. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  1274. <card>
  1275.     <id>8003</id>
  1276.     <filler1>0</filler1>
  1277.     <cantDelete> <false /> </cantDelete>
  1278.     <showPict> <true /> </showPict>
  1279.     <dontSearch> <false /> </dontSearch>
  1280.     <owner>3997</owner>
  1281.     <link rel="stylesheet" type="text/css" href="stylesheet_3268.css" />
  1282.     <content>
  1283.         <layer>background</layer>
  1284.         <id>4</id>
  1285.         <text>Text Optimizations</text>
  1286.     </content>
  1287.     <content>
  1288.         <layer>background</layer>
  1289.         <id>6</id>
  1290.         <text><span class="style2">creen updates when using HyperTint require a lot more processing.  This is very noticeable when typing new characters into a field or when scrolling a field ΓÇ£page by page.ΓÇ¥
  1291.   
  1292. To overcome this problem, HyperTint includes optimizations to improve keystroke and text scrolling performance.
  1293.  
  1294. These optimizations try to perform their magic in a safe way, but ΓÇö for those users who are leery of potential compatibility problems ΓÇö there is an option that can be used when invoking </span><span class="style22"><a href="#" class="group">HyperTint</a></span><span class="style2"> that will prevent these optimizations from being installed.</span></text>
  1295.     </content>
  1296.     <content>
  1297.         <layer>background</layer>
  1298.         <id>8</id>
  1299.         <text>
  1300. HyperTint
  1301. </text>
  1302.     </content>
  1303.     <content>
  1304.         <layer>background</layer>
  1305.         <id>9</id>
  1306.         <text>
  1307. 3747
  1308. </text>
  1309.     </content>
  1310.     <content>
  1311.         <layer>background</layer>
  1312.         <id>10</id>
  1313.         <text>HyperTint Overview</text>
  1314.     </content>
  1315.     <name>Text Optimizations</name>
  1316.     <script></script>
  1317. </card>
  1318.  
  1319.  
  1320. card_10960.xml
  1321. <?xml version="1.0" encoding="utf-8" ?>
  1322. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  1323. <card>
  1324.     <id>10960</id>
  1325.     <filler1>0</filler1>
  1326.     <cantDelete> <false /> </cantDelete>
  1327.     <showPict> <true /> </showPict>
  1328.     <dontSearch> <false /> </dontSearch>
  1329.     <owner>3997</owner>
  1330.     <link rel="stylesheet" type="text/css" href="stylesheet_3268.css" />
  1331.     <content>
  1332.         <layer>background</layer>
  1333.         <id>4</id>
  1334.         <text>Making Authoring Easier</text>
  1335.     </content>
  1336.     <content>
  1337.         <layer>background</layer>
  1338.         <id>6</id>
  1339.         <text><span class="style2">yperTint is based on a set of XCMDs that have to be called from scripts.  Admittedly, this  is less user-friendly than a set of interactive tools.  Still, there are techniques that can reduce the hassles inherent in such an approach.  Before plunging into using HyperTint on a full-scale project, be sure to have a look at the techniques discussed in the Notes and Tips section of this stack, in particular the ΓÇ£</span><span class="style22"><a href="#" class="group">Moving Things Around</a></span><span class="style2">ΓÇ¥ and the ΓÇ£</span><span class="style22"><a href="#" class="group">Assigning Colors Interactively</a></span><span class="style2">ΓÇ¥ card.  The pain is not eliminated ΓÇö only a full-fledged color version of HyperCard will do that ΓÇö but the process becomes more tolerable.</span></text>
  1340.     </content>
  1341.     <content>
  1342.         <layer>background</layer>
  1343.         <id>8</id>
  1344.         <text>
  1345. Moving Things Around
  1346. Assigning Colors Interactively
  1347. </text>
  1348.     </content>
  1349.     <content>
  1350.         <layer>background</layer>
  1351.         <id>9</id>
  1352.         <text>
  1353. 5160
  1354. 15926
  1355. </text>
  1356.     </content>
  1357.     <content>
  1358.         <layer>background</layer>
  1359.         <id>10</id>
  1360.         <text>HyperTint Overview</text>
  1361.     </content>
  1362.     <name>Making Authoring Easier</name>
  1363.     <script></script>
  1364. </card>
  1365.  
  1366.  
  1367. card_7198.xml
  1368. <?xml version="1.0" encoding="utf-8" ?>
  1369. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  1370. <card>
  1371.     <id>7198</id>
  1372.     <filler1>0</filler1>
  1373.     <cantDelete> <false /> </cantDelete>
  1374.     <showPict> <true /> </showPict>
  1375.     <dontSearch> <false /> </dontSearch>
  1376.     <owner>3997</owner>
  1377.     <link rel="stylesheet" type="text/css" href="stylesheet_3268.css" />
  1378.     <content>
  1379.         <layer>background</layer>
  1380.         <id>4</id>
  1381.         <text>System Requirements</text>
  1382.     </content>
  1383.     <content>
  1384.         <layer>background</layer>
  1385.         <id>6</id>
  1386.         <text><span class="style2">yperTint requires HyperCard 2.0/2.1.  It also requires a color-capable Macintosh.
  1387.  
  1388. HyperTint may perform better if 32-Bit QuickDraw is installed.  Under System 7, 32-Bit QuickDraw is always present on any color Macintosh.  As well, all color machines since the Mac IIci have 32-Bit QuickDraw stored in the ROM; these machines always run 32-BIt QuickDraw, even under System 6.    For the Macintosh II, IIx, IIcx, IIfx (??), and SE/30, 32-Bit QuickDraw can be installed by dragging the 32-Bit QuickDraw system extension (INIT) file to the system folder and rebooting the machine.  HyperTint should run properly even if 32-Bit QuickDraw is not installed, but performance may be slower.
  1389.  
  1390. The </span><span class="style12">dither</span><span class="style2">  option in the </span><span class="style1"><a href="#" class="group">HyperTint</a></span><span class="style2">, </span><span class="style1"><a href="#" class="group">HTChangePict</a></span><span class="style2">, and </span><span class="style1"><a href="#" class="group">HTAddPict</a></span><span class="style2"> commands is only available when running under 32-Bit QuickDraw.  (Don't feel bad:  HyperTint dithering is too slow to be anything more than a curiosity.)
  1391.  
  1392. Most of the testing of HyperTint has been done under System 7 version of 32-Bit QuickDraw.</span></text>
  1393.     </content>
  1394.     <content>
  1395.         <layer>background</layer>
  1396.         <id>8</id>
  1397.         <text>
  1398. HyperTint
  1399. HTChangePict
  1400. HTAddPict
  1401. </text>
  1402.     </content>
  1403.     <content>
  1404.         <layer>background</layer>
  1405.         <id>9</id>
  1406.         <text>
  1407. 3747
  1408. 8801
  1409. 12330
  1410. </text>
  1411.     </content>
  1412.     <content>
  1413.         <layer>background</layer>
  1414.         <id>10</id>
  1415.         <text>HyperTint Overview</text>
  1416.     </content>
  1417.     <name>System Requirements</name>
  1418.     <script></script>
  1419. </card>
  1420.  
  1421.  
  1422. card_7508.xml
  1423. <?xml version="1.0" encoding="utf-8" ?>
  1424. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  1425. <card>
  1426.     <id>7508</id>
  1427.     <filler1>0</filler1>
  1428.     <cantDelete> <false /> </cantDelete>
  1429.     <showPict> <true /> </showPict>
  1430.     <dontSearch> <false /> </dontSearch>
  1431.     <owner>3997</owner>
  1432.     <link rel="stylesheet" type="text/css" href="stylesheet_3268.css" />
  1433.     <content>
  1434.         <layer>background</layer>
  1435.         <id>4</id>
  1436.         <text>Memory Requirements</text>
  1437.     </content>
  1438.     <content>
  1439.         <layer>background</layer>
  1440.         <id>6</id>
  1441.         <text><span class="style2">he memory requirements for HyperTint are substantial.  Two memory buffers are required to hold offscreen copies of the color image displayed.  For a given stack, the memory requirements would be approximately:
  1442.  
  1443.            (((pixel depth of deepest screen) * 2 + 1) * cardHeight * cardWidth) /8 
  1444.  
  1445. This stack is 448 pixels wide and 280 pixels tall.  The memory required for buffers to display this stack on a 256-color (8 bit) monitor would be
  1446.  
  1447.          (((8) * 2 +1) * 280 * 448) / 8 
  1448.  
  1449. which is about 270 kilobytes.  This does not include the memory that is needed to read in picture resources and the memory temporarily used by QuickDraw when drawing a new picture.  The size of the picture resource might vary from about ten up to hundreds of kilobytes, depending on how much compression QuickDraw was able to perform on the images.  When drawing a bitmapped picture (that is, a scanned image or a picture produced by a ΓÇ£paintΓÇ¥ program), QuickDraw allocates an additional offscreen image buffer to hold the bitmap.  The good news is that the HyperCard 2.x programming team seems to have done a good job with memory management issues:  HyperCard is quite gracious in handling the temporary requests for oodles of memory when changing pictures.
  1450.  
  1451. For a stack such as this one, a MultiFinder memory partition of 1400-1500K is recommended.  That should give HyperCard lots of memory for buffers and whatever else it needs to optimize its performance.  I have actually run this stack plus a colorized version of the Home stack in a 1600K partition.
  1452.  
  1453. To reduce memory requirements, various actions can be taken.  One is to use smaller card sizes.  Another is to use the colorization features but to skip the backdrop picture.  Finally, the offscreen buffers can be configured to support fewer colors.  Installing HyperTint without a backdrop or with fewer colors is described in the documentation for the </span><span class="style22"><a href="#" class="group">HyperTint</a></span><span class="style2"> command.  The </span><span class="style22"><a href="#" class="group">effect on memory requirements and on performance</a></span><span class="style2"> are discussed in the Notes and Tips section.
  1454.  
  1455. </span></text>
  1456.     </content>
  1457.     <content>
  1458.         <layer>background</layer>
  1459.         <id>10</id>
  1460.         <text>HyperTint Overview</text>
  1461.     </content>
  1462.     <content>
  1463.         <layer>background</layer>
  1464.         <id>8</id>
  1465.         <text>
  1466. HyperTint
  1467. effect on memory requirements and on perfomance
  1468. effect on memory requirements and on performance
  1469. </text>
  1470.     </content>
  1471.     <content>
  1472.         <layer>background</layer>
  1473.         <id>9</id>
  1474.         <text>
  1475. 3747
  1476. 25328
  1477. 25328
  1478. </text>
  1479.     </content>
  1480.     <name>Memory Requirements</name>
  1481.     <script></script>
  1482. </card>
  1483.  
  1484.  
  1485. card_6550.xml
  1486. <?xml version="1.0" encoding="utf-8" ?>
  1487. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  1488. <card>
  1489.     <id>6550</id>
  1490.     <filler1>0</filler1>
  1491.     <cantDelete> <false /> </cantDelete>
  1492.     <showPict> <true /> </showPict>
  1493.     <dontSearch> <false /> </dontSearch>
  1494.     <owner>4603</owner>
  1495.     <link rel="stylesheet" type="text/css" href="stylesheet_3268.css" />
  1496.     <part>
  1497.         <id>13</id>
  1498.         <type>button</type>
  1499.         <visible> <true /> </visible>
  1500.         <reserved5> 0 </reserved5>
  1501.         <reserved4> 0 </reserved4>
  1502.         <reserved3> 0 </reserved3>
  1503.         <reserved2> 0 </reserved2>
  1504.         <reserved1> 0 </reserved1>
  1505.         <enabled> <true /> </enabled>
  1506.         <rect>
  1507.             <left>346</left>
  1508.             <top>268</top>
  1509.             <right>448</right>
  1510.             <bottom>280</bottom>
  1511.         </rect>
  1512.         <style>transparent</style>
  1513.         <showName> <true /> </showName>
  1514.         <highlight> <false /> </highlight>
  1515.         <autoHighlight> <false /> </autoHighlight>
  1516.         <sharedHighlight> <true /> </sharedHighlight>
  1517.         <family>0</family>
  1518.         <titleWidth>0</titleWidth>
  1519.         <icon>0</icon>
  1520.         <textAlign>center</textAlign>
  1521.         <font>Geneva</font>
  1522.         <textSize>9</textSize>
  1523.         <textStyle>bold</textStyle>
  1524.         <name>More Commands...</name>
  1525.         <script>on mouseUp
  1526. send mouseUp to background button "GoRight"
  1527. end mouseUp</script>
  1528.     </part>
  1529.     <content>
  1530.         <layer>background</layer>
  1531.         <id>10</id>
  1532.         <text><span class="style1"><a href="#" class="group">yperTint XCMD</a></span><span class="style2">
  1533. </span><span class="style1"><a href="#" class="group">Color Specifier Examples</a></span><span class="style2">
  1534. </span><span class="style1"><a href="#" class="group">HTChangePict XCMD</a></span><span class="style2">
  1535. </span><span class="style1"><a href="#" class="group">HTAddPict XCMD</a></span><span class="style2">
  1536. </span><span class="style1"><a href="#" class="group">HTAddPict Option Examples</a></span><span class="style2">
  1537. </span><span class="style1"><a href="#" class="group">Color Region Examples</a></span><span class="style2">
  1538. </span></text>
  1539.     </content>
  1540.     <content>
  1541.         <layer>background</layer>
  1542.         <id>11</id>
  1543.         <text>XCMD Reference</text>
  1544.     </content>
  1545.     <content>
  1546.         <layer>background</layer>
  1547.         <id>12</id>
  1548.         <text>XCMD Reference</text>
  1549.     </content>
  1550.     <name>XCMD Reference</name>
  1551.     <script></script>
  1552. </card>
  1553.  
  1554.  
  1555. card_21193.xml
  1556. <?xml version="1.0" encoding="utf-8" ?>
  1557. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  1558. <card>
  1559.     <id>21193</id>
  1560.     <filler1>0</filler1>
  1561.     <cantDelete> <false /> </cantDelete>
  1562.     <showPict> <true /> </showPict>
  1563.     <dontSearch> <false /> </dontSearch>
  1564.     <owner>4603</owner>
  1565.     <link rel="stylesheet" type="text/css" href="stylesheet_3268.css" />
  1566.     <content>
  1567.         <layer>background</layer>
  1568.         <id>10</id>
  1569.         <text><span class="style1"><a href="#" class="group">TVisual XCMD</a></span><span class="style2">
  1570. </span><span class="style1"><a href="#" class="group">Visual Effect Examples</a></span><span class="style2">
  1571. </span><span class="style1"><a href="#" class="group">Button and Field Visual Effect Examples</a></span><span class="style2">
  1572. </span><span class="style1"><a href="#" class="group">Additional Cards in Documentation Stack</a></span><span class="style2">
  1573. </span></text>
  1574.     </content>
  1575.     <content>
  1576.         <layer>background</layer>
  1577.         <id>11</id>
  1578.         <text>XCMD Reference (2)</text>
  1579.     </content>
  1580.     <content>
  1581.         <layer>background</layer>
  1582.         <id>12</id>
  1583.         <text>XCMD Reference</text>
  1584.     </content>
  1585.     <name>XCMD Reference (2)</name>
  1586.     <script></script>
  1587. </card>
  1588.  
  1589.  
  1590. card_3747.xml
  1591. <?xml version="1.0" encoding="utf-8" ?>
  1592. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  1593. <card>
  1594.     <id>3747</id>
  1595.     <filler1>0</filler1>
  1596.     <cantDelete> <false /> </cantDelete>
  1597.     <showPict> <true /> </showPict>
  1598.     <dontSearch> <false /> </dontSearch>
  1599.     <owner>3997</owner>
  1600.     <link rel="stylesheet" type="text/css" href="stylesheet_3268.css" />
  1601.     <content>
  1602.         <layer>background</layer>
  1603.         <id>4</id>
  1604.         <text>HyperTint XCMD</text>
  1605.     </content>
  1606.     <content>
  1607.         <layer>background</layer>
  1608.         <id>6</id>
  1609.         <text><span class="style2">     </span><span class="style10">HyperTint  <picture specifier>, [<optional parameters>, ....]
  1610. </span><span class="style2">
  1611. The HyperTint command installs HyperTint into the current stack window.  
  1612.  
  1613. The HyperTint command must be called before all other HyperTint commands or functions.  The exception to this rule is that the utility command and functions (which start with the letters ΓÇ£</span><span class="style22"><a href="#" class="group">HTU</a></span><span class="style2">ΓÇ¥) may be called even if HyperTint is not installed. 
  1614.  
  1615. </span><span class="style21">Picture Specifier</span><span class="style2">
  1616.  
  1617. The parameter specifies the name or number of a picture resource (resource type 'PICT').  This is the picture that will be used as the initial color backdrop. Instead of a picture resource specifier, this parameter can also be set to the keywords </span><span class="style12">none</span><span class="style2"> or </span><span class="style12">later</span><span class="style2">.  
  1618.  
  1619. The keyword </span><span class="style12">none</span><span class="style2"> indicates that no picture backdrop will be used.  The commands to change the background and foreground colors for various regions of the card will still work.  This option is useful if solid color regions are sufficient.  Using this option eliminates the need for one offscreen buffer which reduces the memory requirement by almost half for pixel depths of 8 or greater.  Once this option is specified, there is no way to create the buffer for the backdrop picture without removing and reinstalling HyperTint.
  1620.  
  1621. The keyword </span><span class="style12">later</span><span class="style2"> indicates that a picture backdrop will be used, but the picture will be left blank for now.  This option is useful because often the backdrop picture changes for each background in the stack.  In this case, the call to the HyperTint XCMD can be placed in the </span><span class="style7">openStack</span><span class="style2"> handler, using the </span><span class="style12">later</span><span class="style2"> keyword.  Then each background can use a </span><span class="style7">openBackground</span><span class="style2"> handler which uses the </span><span class="style1"><a href="#" class="group">HTChangePict</a></span><span class="style2"> command to select the picture appropriate to that background.
  1622.  
  1623. </span><span class="style21">Optional Parameters</span><span class="style9">
  1624.  
  1625. </span><span class="style2">Various optional parameters can be specified to influence the effect of the HyperTint command.
  1626.  
  1627. The keyword </span><span class="style12">file</span><span class="style2"> can be used to specify that the picture parameter represents the name of a PICT file rather than a picture resource.  The HyperTint command will search the directories listed in the ΓÇ£Search for DocumentsΓÇ¥ card of HyperCard's Home stack.  If the file is not found, the user will be prompted to select the file via the standard File Open dialog box.
  1628.  
  1629. If the keyword </span><span class="style12">delay</span><span class="style2"> is specified, updates to the screen will be locked until a call is made to </span><span class="style12">HTLock</span><span class="style2"> to unlock the screen.  (The effect is the same as an implicit call to </span><span class="style7">HTLock on</span><span class="style2">.)  This option allows doing more initialization ΓÇö establishing color regions or specifying visual effects for the initial update ΓÇö before the color image is sent to the screen.
  1630.  
  1631. In order to limit the memory requirements of HyperTint, there are keywords to limit the maximum pixel depth used for offscreen buffers:  </span><span class="style12">maxDepth1</span><span class="style2">, </span><span class="style12">maxDepth2</span><span class="style2">, </span><span class="style12">maxDepth4</span><span class="style2">, </span><span class="style12">maxDepth8</span><span class="style2">, </span><span class="style12">maxDepth16</span><span class="style2">, and </span><span class="style12">maxDepth32</span><span class="style2">.  Normally, HyperTint will allocate offscreen buffers with a pixel depth (that is, the number of bits used for each pixel) that matches the screen on which the card window is displayed.  This can require a lot of memory, particularly on displays that support 24/32 bits per pixel (ΓÇ£millions of colorsΓÇ¥).  These maxDepth keywords can be used to limit the amount of memory required for HyperTint operation.   For instance, if a stack only required 16 colors, maxDepth4 could be specified.  Even if the HyperCard stack is displayed on a screen which is set to 256 or more colors, HyperTint will restrict itself to 16 colors for its buffers.  There is a significant speed penalty for using this option.  HyperTint's operation is much slower when the depth of the offscreen buffers does not match the depth of the screen.  In particular, most visual effects tend to become unacceptably slow.  If you use these options, you may want to consider turning off all visual effects:  see the </span><span class="style12">disallow</span><span class="style2"> keyword for the </span><span class="style1"><a href="#" class="group">HTVisual</a></span><span class="style2"> XCMD.  Considering the huge memory requirements of two offscreen 32 bit buffers, it may be a good idea to always specify maxDepth8 unless the stack is being used to handle 32 bit images.
  1632.  
  1633. Specifying maxdepth32 is the same as not specifying any maxDepth keyword:  HyperTint will attempt to install at the deepest screen depth.
  1634.  
  1635. The optional parameter </span><span class="style12">dither</span><span class="style2"> will cause  backdrop pictures to be dithered when drawing into the offscreen buffers.  Dithering is only done if 32-bit QuickDraw is present.  (This is present in the ROM of all color machines except the Mac II, Mac IIx, Mac IIcx, and SE/30:  these machines require either the 32-Bit QuickDraw system extension or System 7 to support dithering.)  Dithering is only done on bitmapped images.  Dithering was originally intended to provide improved image quality when memory limitations required using one of the maxDepthXX keywords, but I think most users will find the speed penalty unacceptable.  If </span><span class="style12">dither</span><span class="style2"> is specified when installing HyperTint, the effect is global and does not have to be re-specified each time the picture is changed.
  1636.  
  1637. The remaining optional parameters are more obscure.  In order to obtain acceptable typing and text scrolling speeds, HyperTint installs patches to optimize HyperCard's text handling.  If the keyword </span><span class="style12">NoTEOpt </span><span class="style2">is specified, these optimizations are not installed.  To be even more obscure, you can specify </span><span class="style12">TENoCaretOpt</span><span class="style2"> instead of </span><span class="style12">NoTEOpt</span><span class="style2"> which will allow some text optimizations but eliminates other optimizations based on the position of the text insertion caret: try this if fields are not updating properly.
  1638.   
  1639. </span><span class="style21">Error Results</span><span class="style2">
  1640.  
  1641. If the installation was successful, HyperCard's </span><span class="style7">the result</span><span class="style2"> function will return an empty string.  Other possible results are:
  1642.  
  1643. "Requires Color Quickdraw":  an attempt was made to install HyperTint on a Mac that does not support color.
  1644.  
  1645. "Already installed":  an attempt was made to install HyperTint into a stack window that already has HyperTint installed.
  1646.  
  1647. "Bad Picture":  HyperTint could not find or could not load the picture that was specified.  This could be because the picture doesn't exist or due to insufficient memory to read the picture into memory.
  1648.  
  1649. "Bad Option":  an illegal option was specified.
  1650.  
  1651. "Out of Memory":  there was insufficient memory to install HyperTint.
  1652.  
  1653. </span><span class="style21">Notes</span><span class="style9">
  1654.  
  1655. </span><span class="style2">If the pixel depth used for the offscreen buffers matches the depth of the screen, the colors available for use will be the same as the colors that were available on the screen when HyperTint was installed.  If the pixel depth of the offscreen buffers is less than the screen depth ΓÇö which can only happen if one of the </span><span class="style12">MaxDepthxx</span><span class="style2"> parameters were specified ΓÇö the available colors will be the standard system colors for that pixel depth.
  1656.  
  1657. The size of the offscreen buffers is based on the size of the card when HyperTint was installed.  HyperTint does not support stacks that change the card size after HyperTint is installed.
  1658.  
  1659. In multiple screen configurations, installation is based on the screen or screens that currently display the card window.  If the card window is displayed across multiple screens, the colors and pixel depth used are based on the screen with the deepest pixel depth.  HyperTint does not automatically support changes to the screen depth ΓÇö caused by changing a setting in the Monitors control panel or by moving the card window to another screen ΓÇö after installation.  The script for a stack can remove and reinstall HyperTint if screen depth changes:  the ΓÇ£Changing Color DepthΓÇ¥ card in the Notes and Tips section discusses this technique.</span></text>
  1660.     </content>
  1661.     <content>
  1662.         <layer>background</layer>
  1663.         <id>8</id>
  1664.         <text>
  1665. HTChangePict
  1666. HTVisual
  1667. HTU
  1668. openStack
  1669. </text>
  1670.     </content>
  1671.     <content>
  1672.         <layer>background</layer>
  1673.         <id>9</id>
  1674.         <text>
  1675. 8801
  1676. 14255
  1677. 25356
  1678. 21193
  1679. </text>
  1680.     </content>
  1681.     <content>
  1682.         <layer>background</layer>
  1683.         <id>10</id>
  1684.         <text>XCMD Reference</text>
  1685.     </content>
  1686.     <name>HyperTint XCMD</name>
  1687.     <script></script>
  1688. </card>
  1689.  
  1690.  
  1691. card_24169.xml
  1692. <?xml version="1.0" encoding="utf-8" ?>
  1693. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  1694. <card>
  1695.     <id>24169</id>
  1696.     <filler1>0</filler1>
  1697.     <bitmap>BMAP_27031.pbm</bitmap>
  1698.     <cantDelete> <false /> </cantDelete>
  1699.     <showPict> <true /> </showPict>
  1700.     <dontSearch> <false /> </dontSearch>
  1701.     <owner>20104</owner>
  1702.     <link rel="stylesheet" type="text/css" href="stylesheet_3268.css" />
  1703.     <part>
  1704.         <id>1</id>
  1705.         <type>button</type>
  1706.         <visible> <true /> </visible>
  1707.         <reserved5> 0 </reserved5>
  1708.         <reserved4> 0 </reserved4>
  1709.         <reserved3> 0 </reserved3>
  1710.         <reserved2> 0 </reserved2>
  1711.         <reserved1> 0 </reserved1>
  1712.         <enabled> <true /> </enabled>
  1713.         <rect>
  1714.             <left>213</left>
  1715.             <top>250</top>
  1716.             <right>335</right>
  1717.             <bottom>272</bottom>
  1718.         </rect>
  1719.         <style>roundrect</style>
  1720.         <showName> <true /> </showName>
  1721.         <highlight> <false /> </highlight>
  1722.         <autoHighlight> <false /> </autoHighlight>
  1723.         <sharedHighlight> <true /> </sharedHighlight>
  1724.         <family>0</family>
  1725.         <titleWidth>0</titleWidth>
  1726.         <icon>0</icon>
  1727.         <textAlign>center</textAlign>
  1728.         <font>Geneva</font>
  1729.         <textSize>9</textSize>
  1730.         <textStyle>bold</textStyle>
  1731.         <name>10000,42000,32000</name>
  1732.         <script>on mouseUp
  1733. HTUPickColor "Pick a new color", the short name of me
  1734. if the result is not empty then
  1735. if the result is not "Cancel" then
  1736. answer the result
  1737. end if
  1738. else
  1739. set the name of me to it
  1740. put HTCurrBC() into saveBackground
  1741. HTBackground the short name of me
  1742. HTAddPict "none","340,250,360,270"
  1743. HTBackground saveBackground
  1744. end if
  1745. end mouseUp</script>
  1746.     </part>
  1747.     <part>
  1748.         <id>2</id>
  1749.         <type>field</type>
  1750.         <visible> <true /> </visible>
  1751.         <dontWrap> <false /> </dontWrap>
  1752.         <dontSearch> <false /> </dontSearch>
  1753.         <sharedText> <false /> </sharedText>
  1754.         <fixedLineHeight> <false /> </fixedLineHeight>
  1755.         <autoTab> <false /> </autoTab>
  1756.         <lockText> <true /> </lockText>
  1757.         <rect>
  1758.             <left>29</left>
  1759.             <top>86</top>
  1760.             <right>147</right>
  1761.             <bottom>114</bottom>
  1762.         </rect>
  1763.         <style>transparent</style>
  1764.         <autoSelect> <false /> </autoSelect>
  1765.         <showLines> <false /> </showLines>
  1766.         <wideMargins> <false /> </wideMargins>
  1767.         <multipleLines> <false /> </multipleLines>
  1768.         <reservedFamily> 0 </reservedFamily>
  1769.         <titleWidth>0</titleWidth>
  1770.         <icon>0</icon>
  1771.         <textAlign>right</textAlign>
  1772.         <font>Geneva</font>
  1773.         <textSize>9</textSize>
  1774.         <textStyle>plain</textStyle>
  1775.         <textHeight>11</textHeight>
  1776.         <name></name>
  1777.         <script></script>
  1778.     </part>
  1779.     <part>
  1780.         <id>3</id>
  1781.         <type>field</type>
  1782.         <visible> <true /> </visible>
  1783.         <dontWrap> <false /> </dontWrap>
  1784.         <dontSearch> <false /> </dontSearch>
  1785.         <sharedText> <false /> </sharedText>
  1786.         <fixedLineHeight> <false /> </fixedLineHeight>
  1787.         <autoTab> <false /> </autoTab>
  1788.         <lockText> <true /> </lockText>
  1789.         <rect>
  1790.             <left>29</left>
  1791.             <top>48</top>
  1792.             <right>147</right>
  1793.             <bottom>76</bottom>
  1794.         </rect>
  1795.         <style>transparent</style>
  1796.         <autoSelect> <false /> </autoSelect>
  1797.         <showLines> <false /> </showLines>
  1798.         <wideMargins> <false /> </wideMargins>
  1799.         <multipleLines> <false /> </multipleLines>
  1800.         <reservedFamily> 0 </reservedFamily>
  1801.         <titleWidth>0</titleWidth>
  1802.         <icon>0</icon>
  1803.         <textAlign>right</textAlign>
  1804.         <font>Geneva</font>
  1805.         <textSize>9</textSize>
  1806.         <textStyle>plain</textStyle>
  1807.         <textHeight>11</textHeight>
  1808.         <name></name>
  1809.         <script></script>
  1810.     </part>
  1811.     <part>
  1812.         <id>4</id>
  1813.         <type>field</type>
  1814.         <visible> <true /> </visible>
  1815.         <dontWrap> <false /> </dontWrap>
  1816.         <dontSearch> <false /> </dontSearch>
  1817.         <sharedText> <false /> </sharedText>
  1818.         <fixedLineHeight> <false /> </fixedLineHeight>
  1819.         <autoTab> <false /> </autoTab>
  1820.         <lockText> <true /> </lockText>
  1821.         <rect>
  1822.             <left>29</left>
  1823.             <top>126</top>
  1824.             <right>147</right>
  1825.             <bottom>154</bottom>
  1826.         </rect>
  1827.         <style>transparent</style>
  1828.         <autoSelect> <false /> </autoSelect>
  1829.         <showLines> <false /> </showLines>
  1830.         <wideMargins> <false /> </wideMargins>
  1831.         <multipleLines> <false /> </multipleLines>
  1832.         <reservedFamily> 0 </reservedFamily>
  1833.         <titleWidth>0</titleWidth>
  1834.         <icon>0</icon>
  1835.         <textAlign>right</textAlign>
  1836.         <font>Geneva</font>
  1837.         <textSize>9</textSize>
  1838.         <textStyle>plain</textStyle>
  1839.         <textHeight>11</textHeight>
  1840.         <name></name>
  1841.         <script></script>
  1842.     </part>
  1843.     <part>
  1844.         <id>5</id>
  1845.         <type>field</type>
  1846.         <visible> <true /> </visible>
  1847.         <dontWrap> <false /> </dontWrap>
  1848.         <dontSearch> <false /> </dontSearch>
  1849.         <sharedText> <false /> </sharedText>
  1850.         <fixedLineHeight> <false /> </fixedLineHeight>
  1851.         <autoTab> <false /> </autoTab>
  1852.         <lockText> <true /> </lockText>
  1853.         <rect>
  1854.             <left>29</left>
  1855.             <top>167</top>
  1856.             <right>147</right>
  1857.             <bottom>195</bottom>
  1858.         </rect>
  1859.         <style>transparent</style>
  1860.         <autoSelect> <false /> </autoSelect>
  1861.         <showLines> <false /> </showLines>
  1862.         <wideMargins> <false /> </wideMargins>
  1863.         <multipleLines> <false /> </multipleLines>
  1864.         <reservedFamily> 0 </reservedFamily>
  1865.         <titleWidth>0</titleWidth>
  1866.         <icon>0</icon>
  1867.         <textAlign>right</textAlign>
  1868.         <font>Geneva</font>
  1869.         <textSize>9</textSize>
  1870.         <textStyle>plain</textStyle>
  1871.         <textHeight>11</textHeight>
  1872.         <name></name>
  1873.         <script></script>
  1874.     </part>
  1875.     <part>
  1876.         <id>6</id>
  1877.         <type>field</type>
  1878.         <visible> <true /> </visible>
  1879.         <dontWrap> <false /> </dontWrap>
  1880.         <dontSearch> <false /> </dontSearch>
  1881.         <sharedText> <false /> </sharedText>
  1882.         <fixedLineHeight> <false /> </fixedLineHeight>
  1883.         <autoTab> <false /> </autoTab>
  1884.         <lockText> <true /> </lockText>
  1885.         <rect>
  1886.             <left>29</left>
  1887.             <top>207</top>
  1888.             <right>147</right>
  1889.             <bottom>235</bottom>
  1890.         </rect>
  1891.         <style>transparent</style>
  1892.         <autoSelect> <false /> </autoSelect>
  1893.         <showLines> <false /> </showLines>
  1894.         <wideMargins> <false /> </wideMargins>
  1895.         <multipleLines> <false /> </multipleLines>
  1896.         <reservedFamily> 0 </reservedFamily>
  1897.         <titleWidth>0</titleWidth>
  1898.         <icon>0</icon>
  1899.         <textAlign>right</textAlign>
  1900.         <font>Geneva</font>
  1901.         <textSize>9</textSize>
  1902.         <textStyle>plain</textStyle>
  1903.         <textHeight>11</textHeight>
  1904.         <name></name>
  1905.         <script></script>
  1906.     </part>
  1907.     <part>
  1908.         <id>7</id>
  1909.         <type>field</type>
  1910.         <visible> <true /> </visible>
  1911.         <dontWrap> <false /> </dontWrap>
  1912.         <dontSearch> <false /> </dontSearch>
  1913.         <sharedText> <false /> </sharedText>
  1914.         <fixedLineHeight> <false /> </fixedLineHeight>
  1915.         <autoTab> <false /> </autoTab>
  1916.         <lockText> <true /> </lockText>
  1917.         <rect>
  1918.             <left>29</left>
  1919.             <top>247</top>
  1920.             <right>147</right>
  1921.             <bottom>275</bottom>
  1922.         </rect>
  1923.         <style>transparent</style>
  1924.         <autoSelect> <false /> </autoSelect>
  1925.         <showLines> <false /> </showLines>
  1926.         <wideMargins> <false /> </wideMargins>
  1927.         <multipleLines> <false /> </multipleLines>
  1928.         <reservedFamily> 0 </reservedFamily>
  1929.         <titleWidth>0</titleWidth>
  1930.         <icon>0</icon>
  1931.         <textAlign>right</textAlign>
  1932.         <font>Geneva</font>
  1933.         <textSize>9</textSize>
  1934.         <textStyle>plain</textStyle>
  1935.         <textHeight>11</textHeight>
  1936.         <name></name>
  1937.         <script></script>
  1938.     </part>
  1939.     <part>
  1940.         <id>15</id>
  1941.         <type>field</type>
  1942.         <visible> <true /> </visible>
  1943.         <dontWrap> <false /> </dontWrap>
  1944.         <dontSearch> <false /> </dontSearch>
  1945.         <sharedText> <false /> </sharedText>
  1946.         <fixedLineHeight> <false /> </fixedLineHeight>
  1947.         <autoTab> <false /> </autoTab>
  1948.         <lockText> <true /> </lockText>
  1949.         <rect>
  1950.             <left>219</left>
  1951.             <top>207</top>
  1952.             <right>337</right>
  1953.             <bottom>235</bottom>
  1954.         </rect>
  1955.         <style>transparent</style>
  1956.         <autoSelect> <false /> </autoSelect>
  1957.         <showLines> <false /> </showLines>
  1958.         <wideMargins> <false /> </wideMargins>
  1959.         <multipleLines> <false /> </multipleLines>
  1960.         <reservedFamily> 0 </reservedFamily>
  1961.         <titleWidth>0</titleWidth>
  1962.         <icon>0</icon>
  1963.         <textAlign>right</textAlign>
  1964.         <font>Geneva</font>
  1965.         <textSize>9</textSize>
  1966.         <textStyle>plain</textStyle>
  1967.         <textHeight>11</textHeight>
  1968.         <name></name>
  1969.         <script></script>
  1970.     </part>
  1971.     <part>
  1972.         <id>16</id>
  1973.         <type>field</type>
  1974.         <visible> <true /> </visible>
  1975.         <dontWrap> <false /> </dontWrap>
  1976.         <dontSearch> <false /> </dontSearch>
  1977.         <sharedText> <false /> </sharedText>
  1978.         <fixedLineHeight> <false /> </fixedLineHeight>
  1979.         <autoTab> <false /> </autoTab>
  1980.         <lockText> <true /> </lockText>
  1981.         <rect>
  1982.             <left>219</left>
  1983.             <top>167</top>
  1984.             <right>337</right>
  1985.             <bottom>195</bottom>
  1986.         </rect>
  1987.         <style>transparent</style>
  1988.         <autoSelect> <false /> </autoSelect>
  1989.         <showLines> <false /> </showLines>
  1990.         <wideMargins> <false /> </wideMargins>
  1991.         <multipleLines> <false /> </multipleLines>
  1992.         <reservedFamily> 0 </reservedFamily>
  1993.         <titleWidth>0</titleWidth>
  1994.         <icon>0</icon>
  1995.         <textAlign>right</textAlign>
  1996.         <font>Geneva</font>
  1997.         <textSize>9</textSize>
  1998.         <textStyle>plain</textStyle>
  1999.         <textHeight>11</textHeight>
  2000.         <name></name>
  2001.         <script></script>
  2002.     </part>
  2003.     <part>
  2004.         <id>17</id>
  2005.         <type>field</type>
  2006.         <visible> <true /> </visible>
  2007.         <dontWrap> <false /> </dontWrap>
  2008.         <dontSearch> <false /> </dontSearch>
  2009.         <sharedText> <false /> </sharedText>
  2010.         <fixedLineHeight> <false /> </fixedLineHeight>
  2011.         <autoTab> <false /> </autoTab>
  2012.         <lockText> <true /> </lockText>
  2013.         <rect>
  2014.             <left>219</left>
  2015.             <top>126</top>
  2016.             <right>337</right>
  2017.             <bottom>154</bottom>
  2018.         </rect>
  2019.         <style>transparent</style>
  2020.         <autoSelect> <false /> </autoSelect>
  2021.         <showLines> <false /> </showLines>
  2022.         <wideMargins> <false /> </wideMargins>
  2023.         <multipleLines> <false /> </multipleLines>
  2024.         <reservedFamily> 0 </reservedFamily>
  2025.         <titleWidth>0</titleWidth>
  2026.         <icon>0</icon>
  2027.         <textAlign>right</textAlign>
  2028.         <font>Geneva</font>
  2029.         <textSize>9</textSize>
  2030.         <textStyle>plain</textStyle>
  2031.         <textHeight>11</textHeight>
  2032.         <name></name>
  2033.         <script></script>
  2034.     </part>
  2035.     <part>
  2036.         <id>18</id>
  2037.         <type>field</type>
  2038.         <visible> <true /> </visible>
  2039.         <dontWrap> <false /> </dontWrap>
  2040.         <dontSearch> <false /> </dontSearch>
  2041.         <sharedText> <false /> </sharedText>
  2042.         <fixedLineHeight> <false /> </fixedLineHeight>
  2043.         <autoTab> <false /> </autoTab>
  2044.         <lockText> <true /> </lockText>
  2045.         <rect>
  2046.             <left>219</left>
  2047.             <top>86</top>
  2048.             <right>337</right>
  2049.             <bottom>114</bottom>
  2050.         </rect>
  2051.         <style>transparent</style>
  2052.         <autoSelect> <false /> </autoSelect>
  2053.         <showLines> <false /> </showLines>
  2054.         <wideMargins> <false /> </wideMargins>
  2055.         <multipleLines> <false /> </multipleLines>
  2056.         <reservedFamily> 0 </reservedFamily>
  2057.         <titleWidth>0</titleWidth>
  2058.         <icon>0</icon>
  2059.         <textAlign>right</textAlign>
  2060.         <font>Geneva</font>
  2061.         <textSize>9</textSize>
  2062.         <textStyle>plain</textStyle>
  2063.         <textHeight>11</textHeight>
  2064.         <name></name>
  2065.         <script></script>
  2066.     </part>
  2067.     <part>
  2068.         <id>19</id>
  2069.         <type>field</type>
  2070.         <visible> <true /> </visible>
  2071.         <dontWrap> <false /> </dontWrap>
  2072.         <dontSearch> <false /> </dontSearch>
  2073.         <sharedText> <false /> </sharedText>
  2074.         <fixedLineHeight> <false /> </fixedLineHeight>
  2075.         <autoTab> <false /> </autoTab>
  2076.         <lockText> <true /> </lockText>
  2077.         <rect>
  2078.             <left>219</left>
  2079.             <top>48</top>
  2080.             <right>337</right>
  2081.             <bottom>76</bottom>
  2082.         </rect>
  2083.         <style>transparent</style>
  2084.         <autoSelect> <false /> </autoSelect>
  2085.         <showLines> <false /> </showLines>
  2086.         <wideMargins> <false /> </wideMargins>
  2087.         <multipleLines> <false /> </multipleLines>
  2088.         <reservedFamily> 0 </reservedFamily>
  2089.         <titleWidth>0</titleWidth>
  2090.         <icon>0</icon>
  2091.         <textAlign>right</textAlign>
  2092.         <font>Geneva</font>
  2093.         <textSize>9</textSize>
  2094.         <textStyle>plain</textStyle>
  2095.         <textHeight>11</textHeight>
  2096.         <name></name>
  2097.         <script></script>
  2098.     </part>
  2099.     <content>
  2100.         <layer>background</layer>
  2101.         <id>10</id>
  2102.         <text>Color Specifier Examples</text>
  2103.     </content>
  2104.     <content>
  2105.         <layer>background</layer>
  2106.         <id>11</id>
  2107.         <text>XCMD Reference</text>
  2108.     </content>
  2109.     <content>
  2110.         <layer>card</layer>
  2111.         <id>2</id>
  2112.         <text>"0,0,0"
  2113. "black"</text>
  2114.     </content>
  2115.     <content>
  2116.         <layer>card</layer>
  2117.         <id>4</id>
  2118.         <text>"32768,32768,32768"
  2119. "gray"</text>
  2120.     </content>
  2121.     <content>
  2122.         <layer>card</layer>
  2123.         <id>5</id>
  2124.         <text>"16384,16384,16384"
  2125. "dark gray"</text>
  2126.     </content>
  2127.     <content>
  2128.         <layer>card</layer>
  2129.         <id>6</id>
  2130.         <text>"49152,49152,49152"
  2131. "light gray"</text>
  2132.     </content>
  2133.     <content>
  2134.         <layer>card</layer>
  2135.         <id>7</id>
  2136.         <text>"65535,0,0"</text>
  2137.     </content>
  2138.     <content>
  2139.         <layer>card</layer>
  2140.         <id>3</id>
  2141.         <text>"65535,65535,65535"
  2142. "white"</text>
  2143.     </content>
  2144.     <content>
  2145.         <layer>card</layer>
  2146.         <id>15</id>
  2147.         <text>"65535,27384,1589"
  2148. </text>
  2149.     </content>
  2150.     <content>
  2151.         <layer>card</layer>
  2152.         <id>16</id>
  2153.         <text>"65535,65535,0"
  2154. </text>
  2155.     </content>
  2156.     <content>
  2157.         <layer>card</layer>
  2158.         <id>17</id>
  2159.         <text>"65000,10000,32000"
  2160. </text>
  2161.     </content>
  2162.     <content>
  2163.         <layer>card</layer>
  2164.         <id>18</id>
  2165.         <text>"0,0,65535"
  2166. </text>
  2167.     </content>
  2168.     <content>
  2169.         <layer>card</layer>
  2170.         <id>19</id>
  2171.         <text>"0,65535,0"
  2172. </text>
  2173.     </content>
  2174.     <name>Color Specifier Examples</name>
  2175.     <script>-- 10000,42000,32000
  2176.  
  2177. on openCard
  2178. send openCard to this background
  2179.  
  2180. displayColorBoxes
  2181.  
  2182. end openCard
  2183.  
  2184. on displayColorBoxes
  2185. --  Not all the colors specified will be precise:  on 8 bit screens
  2186. -- and other, they will be mapped to the closest color available
  2187. -- on the screen
  2188.  
  2189. put HTCurrBC() into saveBackground -- So that we can restore it later
  2190.  
  2191. HTBackground "white" -- equivalent to "65535,65535,65535"
  2192. HTAddPict "none","150,50,170,70"
  2193.  
  2194. HTBackground "black" -- equivalent to "0,0,0"
  2195. HTAddPict "none","150,90,170,110"
  2196.  
  2197. HTBackground "gray" -- equivalent to "32768,32768,32768"
  2198. HTAddPict "none","150,130,170,150"
  2199.  
  2200. HTBackground "dark gray" -- equivalent to "16384,16384,16384"
  2201. HTAddPict "none","150,170,170,190"
  2202.  
  2203. HTBackground "light gray" -- equivalent to "49152,49152,49152"
  2204. HTAddPict "none","150,210,170,230"
  2205.  
  2206. HTBackground "65535,0,0"  -- red
  2207. HTAddPict "none","150,250,170,270"
  2208.  
  2209.  
  2210. HTBackground "0,65535,0" -- green
  2211. HTAddPict "none","340,50,360,70"
  2212.  
  2213. HTBackground "0,0,65535" -- blue
  2214. HTAddPict "none","340,90,360,110"
  2215.  
  2216. HTBackground "65000,10000,32000" -- ???
  2217. HTAddPict "none","340,130,360,150"
  2218.  
  2219. HTBackground "65535,65535,0" -- yellow
  2220. HTAddPict "none","340,170,360,190"
  2221.  
  2222. HTBackground "65535,27384,1589"
  2223. HTAddPict "none","340,210,360,230"
  2224.  
  2225. HTBackground the short name of button id 1
  2226. HTAddPict "none","340,250,360,270"
  2227.  
  2228.  
  2229.  
  2230. HTBackground saveBackground
  2231. end displayColorBoxes
  2232.  
  2233. on drawRects
  2234.  
  2235. set the editBkgnd to false
  2236. choose rectangle tool
  2237.  
  2238. drag from "150,50" to "170,70"
  2239.  
  2240. drag from "150,90" to "170,110"
  2241.  
  2242. drag from "150,130" to "170,150"
  2243.  
  2244. drag from "150,170" to "170,190"
  2245.  
  2246. drag from "150,210" to "170,230"
  2247.  
  2248. drag from "150,250" to "170,270"
  2249.  
  2250.  
  2251. drag from "340,50" to "360,70"
  2252.  
  2253. drag from "340,90" to "360,110"
  2254.  
  2255. drag from "340,130" to "360,150"
  2256.  
  2257. drag from "340,170" to "360,190"
  2258.  
  2259. drag from "340,210" to "360,230"
  2260.  
  2261. drag from "340,250" to "360,270"
  2262.  
  2263. choose browse tool
  2264. end drawRects
  2265.  
  2266.  
  2267. on lockfields  which
  2268. if which is empty then
  2269. put true into which
  2270. end if
  2271.  
  2272. repeat with i = 1 to the number of card fields
  2273. set the locktext of card field i to true
  2274. end repeat
  2275. end lockfields
  2276.  
  2277. on cr
  2278. clearAllRegions
  2279. HTWriteScheme the short name of this card
  2280. if the result is not empty then
  2281. answer "Error saving color scheme:  " & the result
  2282. end if
  2283. go this card
  2284. end cr</script>
  2285. </card>
  2286.  
  2287.  
  2288. card_8801.xml
  2289. <?xml version="1.0" encoding="utf-8" ?>
  2290. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  2291. <card>
  2292.     <id>8801</id>
  2293.     <filler1>0</filler1>
  2294.     <cantDelete> <false /> </cantDelete>
  2295.     <showPict> <true /> </showPict>
  2296.     <dontSearch> <false /> </dontSearch>
  2297.     <owner>3997</owner>
  2298.     <link rel="stylesheet" type="text/css" href="stylesheet_3268.css" />
  2299.     <content>
  2300.         <layer>background</layer>
  2301.         <id>4</id>
  2302.         <text>HTChangePict XCMD</text>
  2303.     </content>
  2304.     <content>
  2305.         <layer>background</layer>
  2306.         <id>6</id>
  2307.         <text><span class="style10">     HTChangePict <picture specifier>,<option>,<option>,...
  2308. </span><span class="style2">
  2309. The HTChangePict command replaces the backdrop picture with a new picture.
  2310.  
  2311. </span><span class="style21">Picture Specifier</span><span class="style9">
  2312. </span><span class="style12">
  2313. Demo note:  the HTChangePict XCMD has been included in the demo so that it can be evaluated, but it only allows the picture to be set to ΓÇ£noneΓÇ¥ or to a picture named ΓÇ£BobΓÇ¥.  (This ΓÇ£BobΓÇ¥ picture can be either a PICT resource or a PICT file.) 
  2314. </span><span class="style9">
  2315. </span><span class="style2">The parameter specifies the name or number of a picture resource (resource type 'PICT').  This is the picture that will be used as the new color backdrop. Instead of a picture resource specifier, this parameter can also be set to the keyword </span><span class="style12">none</span><span class="style2">.  
  2316.  
  2317. The keyword </span><span class="style12">none</span><span class="style2"> indicates that no picture backdrop will be used.  The commands to change the background and foreground colors for various regions of the card will still work.  This option can be used if some backgrounds require a backdrop picture and some don't.  Specifying </span><span class="style12">none</span><span class="style2"> does not dispose of the offscreen buffer associated with the backdrop buffer:  this buffer is simply ΓÇ£blanked out.ΓÇ¥  (If a backdrop is never required by a stack, then the keyword </span><span class="style12">none</span><span class="style2"> should be specified when calling the </span><span class="style1"><a href="#" class="group">HyperTint</a></span><span class="style2"> XCMD which will eliminate the need for a picture buffer.)  HyperTint is able to invoke some speed optimizations when the current backdrop picture is set to </span><span class="style12">none</span><span class="style2">.
  2318.  
  2319. </span><span class="style21">Optional Parameters</span><span class="style9">
  2320.  
  2321. </span><span class="style2">The keyword </span><span class="style12">file</span><span class="style2"> can be used to specify that the picture parameter represents the name of a PICT file rather than a picture resource.  The HTChangePict command will search the directories listed in HyperCard's ΓÇ£Search for DocumentsΓÇ¥ card.  If the file is not found, the user will be prompted to select the file via the standard File Open dialog box.
  2322.  
  2323. The keyword </span><span class="style12">dither</span><span class="style2"> can be used to specify that the picture should be dithered as it is drawn into the offscreen buffer.  This dithering is only done on bitmapped images.  Dithering requires 32-Bit QuickDraw; otherwise, the option is ignored but does not cause an error.  Dithering is painfully slow.  If </span><span class="style12">dither</span><span class="style2"> was specified when invoking the </span><span class="style1"><a href="#" class="group">HyperTint</a></span><span class="style2"> command, it us not necessary to specify each time HTChangePict is called.</span><span class="style9">
  2324.  
  2325. </span><span class="style21">Delay Parameters</span><span class="style9">
  2326.  
  2327. </span><span class="style2">Other optional parameters are the keywords </span><span class="style12">delay</span><span class="style2"> and </span><span class="style12">noDelay</span><span class="style2">.  By default, HTChangePict causes an immediate screen update, unless the screen is currently locked.   Specifying </span><span class="style12">delay</span><span class="style2"> will cause the screen update to be delayed until HyperCard draws something new to the screen.  Specifying </span><span class="style12">noDelay</span><span class="style2"> is redundant:  it simply requests that the screen be updated immediately (in other words, the default behaviour).  If the screen has been locked using </span><span class="style1"><a href="#" class="group">HTLock</a></span><span class="style2">, neither of these keywords has any effect:  no screen updates will occur until the screen is unlocked.
  2328. </span><span class="style9">
  2329. </span><span class="style21">Examples</span><span class="style9">
  2330. </span><span class="style2">
  2331. </span><span class="style10">     HTChangePict "Pretty"  -- sets the backdrop to a picture
  2332.                             -- named "Pretty"
  2333.      HTChangePict "Pretty","file","dither"
  2334.                       -- The picture is stored in a PICT file
  2335.                       -- called "Pretty".  The picture will be
  2336.                       -- dithered as it is drawn
  2337.  
  2338. </span><span class="style2">
  2339. </span><span class="style21">Error Results</span><span class="style2">
  2340.  
  2341. If the command was successful, HyperCard's </span><span class="style7">the result</span><span class="style2"> function will return an empty string.  Other possible results are:
  2342.  
  2343. "Not Installed":  HyperTint is not installed in the current stack.
  2344.  
  2345. "Bad Option":  An option keyword was not recognized.
  2346.  
  2347. "Bad Picture":  HyperTint could not find the picture specified or had some problem reading it.
  2348.  
  2349. "Out of memory":  Increase HyperCard's memory partition or perhaps buy some more RAM
  2350.  
  2351. "Error reading file":  Something went wrong while reading a PICT file.
  2352.  
  2353. "Drawing Error":  Something (besides a lack of memory) went wrong when QuickDraw was asked to draw the picture.
  2354.  
  2355. "Unknown Error":  Something else went wrong.
  2356. </span><span class="style9">
  2357. </span></text>
  2358.     </content>
  2359.     <content>
  2360.         <layer>background</layer>
  2361.         <id>8</id>
  2362.         <text>
  2363. HyperTint
  2364. </text>
  2365.     </content>
  2366.     <content>
  2367.         <layer>background</layer>
  2368.         <id>9</id>
  2369.         <text>
  2370. 3747
  2371. </text>
  2372.     </content>
  2373.     <content>
  2374.         <layer>background</layer>
  2375.         <id>10</id>
  2376.         <text>XCMD Reference</text>
  2377.     </content>
  2378.     <name>HTChangePict XCMD</name>
  2379.     <script></script>
  2380. </card>
  2381.  
  2382.  
  2383. card_12330.xml
  2384. <?xml version="1.0" encoding="utf-8" ?>
  2385. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  2386. <card>
  2387.     <id>12330</id>
  2388.     <filler1>0</filler1>
  2389.     <cantDelete> <false /> </cantDelete>
  2390.     <showPict> <true /> </showPict>
  2391.     <dontSearch> <false /> </dontSearch>
  2392.     <owner>3997</owner>
  2393.     <link rel="stylesheet" type="text/css" href="stylesheet_3268.css" />
  2394.     <content>
  2395.         <layer>background</layer>
  2396.         <id>4</id>
  2397.         <text>HTAddPict XCMD</text>
  2398.     </content>
  2399.     <content>
  2400.         <layer>background</layer>
  2401.         <id>6</id>
  2402.         <text><span class="style10">     HTAddPict <picture specfier>,<rectangle>,<option>,...
  2403. </span><span class="style2">
  2404. The HTAddPict command overwrites a section of the backdrop picture with a new picture.
  2405.  
  2406. </span><span class="style21">Picture Specifier</span><span class="style9">
  2407.  
  2408. </span><span class="style12">Demo note:  the HTAddPict XCMD has been modified so that it only allows the picture to be set to ΓÇ£noneΓÇ¥ or to a picture named ΓÇ£BobΓÇ¥, which can be either a PICT resource or a PICT file.  (As well, the pictures required for use in this demo stack are also supported.)
  2409.  
  2410. </span><span class="style2">The parameter specifies the name or number of a picture resource (resource type 'PICT').  This is the picture that will be added. Instead of a picture resource specifier, this parameter can also be set to the keyword </span><span class="style12">none</span><span class="style2">, in which case, the rectangle will be erased.  
  2411.  
  2412.  
  2413. </span><span class="style21">Optional Pararameters</span><span class="style9">
  2414.  
  2415. </span><span class="style2">The keyword </span><span class="style12">file</span><span class="style2"> can be used to specify that the picture parameter represents the name of a PICT file rather than a picture resource.  The HTAddPict command will search the directories listed in HyperCard's ΓÇ£Search for DocumentsΓÇ¥ card.  If the file is not found, the user will be prompted to select the file via the standard File Open dialog box.
  2416.  
  2417. The keyword </span><span class="style12">dither</span><span class="style2"> can be used to specify that the picture should be dithered as it is drawn into the offscreen buffer.  This dithering is only done on bitmapped images.  Dithering requires 32-Bit QuickDraw; otherwise, the option is ignored but does not cause an error.</span><span class="style9">
  2418.  
  2419. </span><span class="style2">The keyword </span><span class="style12">noErase</span><span class="style2"> will keep the rectangle from being erased before the picture is drawn.  For bitmap pictures created by a ΓÇ£paintΓÇ¥ program, this option has no visible effect, but it may be useful for some pictures created by ΓÇ£drawΓÇ¥ type programs.  The default is to erase before drawing the picture. 
  2420.  
  2421. By default, the picture's top-left corner will be aligned with the top-left of the rectangle parameter and the picture will be drawn at a 1:1 scale.  The drawing is clipped so that nothing is drawn ΓÇ£outside the lines.ΓÇ¥   This default action can be overridden by specifying one of the following keywords.
  2422.  
  2423. </span><span class="style12">Scale</span><span class="style2"> will cause the picture to be scaled so that the entire picture will be drawn into the display rectangle.
  2424.  
  2425. </span><span class="style12">Center</span><span class="style2"> cause the picture to be drawn at a 1:1 scale, but aligned at the center instead of the top-left.  The drawing is clipped to fit the display rectangle.
  2426.  
  2427. </span><span class="style12">Restore</span><span class="style2"> will position the top-left of the picture at the top-left of the card, just as would be done for </span><span class="style1"><a href="#" class="group">HTChangePict</a></span><span class="style2">, but only updates the section that falls within the rectangle parameter.  This can be used if part of the backdrop picture was modified by a previous HTAddPict command, and it is now desired to restore the original backdrop picture.  (Perhaps some other changes ΓÇö┬áthat are still needed ΓÇö have been made elsewhere to the backdrop and would be lost if HTChangePict was called.)  Because the entire picture backdrop picture must still be read and processed, even though only a section is being updated, this is a relatively slow way to restore a section of the picture.  A better way would be to create a picture that has a copy of the section to be restored and use the normal HTAddPict to restore the image, but the </span><span class="style12">restore</span><span class="style2"> option is provided as a convenience, particularly during the early stages of stack authoring.
  2428.  
  2429. </span><span class="style21">Delay Parameters</span><span class="style9">
  2430.  
  2431. </span><span class="style2">Other optional parameters are the keywords </span><span class="style12">delay</span><span class="style2"> and </span><span class="style12">noDelay</span><span class="style2">.  By default, HTAddPict causes an immediate screen update of the rectangle that has been changed, unless the screen is currently locked.   Specifying </span><span class="style12">delay</span><span class="style2"> will cause the screen update to be delayed until HyperCard draws something new to the screen.  Specifying </span><span class="style12">noDelay</span><span class="style2"> is redundant:  it simply requests that the screen be updated immediately (in other words, the default behaviour).  If the screen has been locked using </span><span class="style12">HTLock</span><span class="style2">, neither of these keywords has any effect:  no screen updates will occur until the screen is unlocked.
  2432.  </span><span class="style9">
  2433. </span><span class="style21">Examples</span><span class="style9">
  2434.  
  2435. </span><span class="style10">-- Perhaps there is a button, visible only under certain
  2436. -- conditions, that requires a colorful "icon".  The button
  2437. -- could be made to be transparent
  2438. on showButt
  2439.    show background button "Magic"  -- make the button active
  2440.    HTAddPict "Magical", the rect of background button "Magic"
  2441. end showButt
  2442.  
  2443. on hideButt
  2444.    hide background button "Magic"  -- make the button inactive
  2445.    HTAddPict "OurBPict", the rect of background button "Magic",┬¼
  2446.    "restore"   -- Restore the backdrop picture under the button
  2447. end showButt
  2448.  
  2449. -- Or perhaps we have an employee stack.  Pictures of each
  2450. -- employee is stored in a PICT file, labelled by the employee's
  2451. -- ID number (which is used to track their every move)
  2452. on openCard
  2453.   -- Show this employee's mug shot
  2454.   HTAddPict field "Employee ID","100,100,250,300","file"
  2455.   if the result is not empty then
  2456.     -- Hmmm, probably don't have a PICT file for this
  2457.     -- employee.  Better get rid of the picture from the
  2458.     -- previous employee.
  2459.     BTAddPict "none","100,100,250,300"
  2460.   end if
  2461. end openCard
  2462. </span><span class="style2">
  2463. </span><span class="style21">Error Results</span><span class="style2">
  2464.  
  2465. If the command was successful, HyperCard's </span><span class="style7">the result</span><span class="style2"> function will return an empty string.  Other possible results are:
  2466.  
  2467. "Not Installed":  HyperTint is not installed in the current stack.
  2468.  
  2469. "Bad Option":  An option keyword was not recognized.
  2470.  
  2471. "Bad Picture":  HyperTint could not find the picture specified or had some problem reading it.
  2472.  
  2473. "Bad Rectangle":  HyperTint was not able to make sense out of the rectangle parameter.
  2474.  
  2475. "Out of memory":  Increase HyperCard's memory partition or perhaps buy some more RAM
  2476.  
  2477. "Error reading file":  Something went wrong while reading a PICT file.
  2478.  
  2479. "Drawing Error":  Something (besides a lack of memory) went wrong when QuickDraw was asked to draw the picture.
  2480.  
  2481. </span></text>
  2482.     </content>
  2483.     <content>
  2484.         <layer>background</layer>
  2485.         <id>8</id>
  2486.         <text>
  2487. HTChangePict
  2488. </text>
  2489.     </content>
  2490.     <content>
  2491.         <layer>background</layer>
  2492.         <id>9</id>
  2493.         <text>
  2494. 8801
  2495. </text>
  2496.     </content>
  2497.     <content>
  2498.         <layer>background</layer>
  2499.         <id>10</id>
  2500.         <text>XCMD Reference</text>
  2501.     </content>
  2502.     <name>HTAddPict XCMD</name>
  2503.     <script></script>
  2504. </card>
  2505.  
  2506.  
  2507. card_16192.xml
  2508. <?xml version="1.0" encoding="utf-8" ?>
  2509. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  2510. <card>
  2511.     <id>16192</id>
  2512.     <filler1>0</filler1>
  2513.     <cantDelete> <false /> </cantDelete>
  2514.     <showPict> <true /> </showPict>
  2515.     <dontSearch> <false /> </dontSearch>
  2516.     <owner>20104</owner>
  2517.     <link rel="stylesheet" type="text/css" href="stylesheet_3268.css" />
  2518.     <part>
  2519.         <id>1</id>
  2520.         <type>button</type>
  2521.         <visible> <true /> </visible>
  2522.         <reserved5> 0 </reserved5>
  2523.         <reserved4> 0 </reserved4>
  2524.         <reserved3> 0 </reserved3>
  2525.         <reserved2> 0 </reserved2>
  2526.         <reserved1> 0 </reserved1>
  2527.         <enabled> <true /> </enabled>
  2528.         <rect>
  2529.             <left>12</left>
  2530.             <top>102</top>
  2531.             <right>292</right>
  2532.             <bottom>243</bottom>
  2533.         </rect>
  2534.         <style>rectangle</style>
  2535.         <showName> <false /> </showName>
  2536.         <highlight> <false /> </highlight>
  2537.         <autoHighlight> <false /> </autoHighlight>
  2538.         <sharedHighlight> <true /> </sharedHighlight>
  2539.         <family>0</family>
  2540.         <titleWidth>0</titleWidth>
  2541.         <icon>0</icon>
  2542.         <textAlign>center</textAlign>
  2543.         <font>Chicago</font>
  2544.         <textSize>12</textSize>
  2545.         <textStyle>plain</textStyle>
  2546.         <name>PictDisplay</name>
  2547.         <script></script>
  2548.     </part>
  2549.     <part>
  2550.         <id>3</id>
  2551.         <type>button</type>
  2552.         <visible> <true /> </visible>
  2553.         <reserved5> 0 </reserved5>
  2554.         <reserved4> 0 </reserved4>
  2555.         <reserved3> 0 </reserved3>
  2556.         <reserved2> 0 </reserved2>
  2557.         <reserved1> 0 </reserved1>
  2558.         <enabled> <true /> </enabled>
  2559.         <rect>
  2560.             <left>376</left>
  2561.             <top>75</top>
  2562.             <right>438</right>
  2563.             <bottom>95</bottom>
  2564.         </rect>
  2565.         <style>checkbox</style>
  2566.         <showName> <true /> </showName>
  2567.         <highlight> <false /> </highlight>
  2568.         <autoHighlight> <true /> </autoHighlight>
  2569.         <sharedHighlight> <true /> </sharedHighlight>
  2570.         <family>0</family>
  2571.         <titleWidth>0</titleWidth>
  2572.         <icon>0</icon>
  2573.         <textAlign>center</textAlign>
  2574.         <font>Chicago</font>
  2575.         <textSize>12</textSize>
  2576.         <textStyle>plain</textStyle>
  2577.         <name>Dither</name>
  2578.         <script>on mouseUp
  2579. -- Warn the user the about dithering
  2580. if the hilite of me is true then
  2581. put HTUMaxDepth() into theDepth
  2582. if theDepth >= 8 then
  2583. answer "The picture being used was dithered"┬¼
  2584. & " to 8 bits when it was created, so dithering unscaled copies"┬¼
  2585. & " won't have much effect."
  2586. end if
  2587. end if
  2588. end mouseUp</script>
  2589.     </part>
  2590.     <part>
  2591.         <id>4</id>
  2592.         <type>button</type>
  2593.         <visible> <true /> </visible>
  2594.         <reserved5> 0 </reserved5>
  2595.         <reserved4> 0 </reserved4>
  2596.         <reserved3> 0 </reserved3>
  2597.         <reserved2> 0 </reserved2>
  2598.         <reserved1> 0 </reserved1>
  2599.         <enabled> <true /> </enabled>
  2600.         <rect>
  2601.             <left>28</left>
  2602.             <top>46</top>
  2603.             <right>147</right>
  2604.             <bottom>68</bottom>
  2605.         </rect>
  2606.         <style>roundrect</style>
  2607.         <showName> <true /> </showName>
  2608.         <highlight> <false /> </highlight>
  2609.         <autoHighlight> <false /> </autoHighlight>
  2610.         <sharedHighlight> <true /> </sharedHighlight>
  2611.         <family>0</family>
  2612.         <titleWidth>0</titleWidth>
  2613.         <icon>0</icon>
  2614.         <textAlign>center</textAlign>
  2615.         <font>Chicago</font>
  2616.         <textSize>12</textSize>
  2617.         <textStyle>plain</textStyle>
  2618.         <name>AddPict (default)</name>
  2619.         <script>on mouseUp
  2620. -- The picture will be updated behind the rectangle
  2621. -- of the button PictDisplay.  This is just done to
  2622. -- make it easier to change the display rectangle, if desired.
  2623. if the hilite of button dither then
  2624. HTAddPict "HyperTint",the rect of btn "PictDisplay","dither"
  2625. else
  2626. HTAddPict "HyperTint",the rect of btn "PictDisplay"
  2627. end if
  2628.  
  2629. -- Report any error to the user.  A real-world stack might also
  2630. -- take some additional action in case of an error.
  2631. if the result is not empty then
  2632. answer the result
  2633. end if
  2634. end mouseUp</script>
  2635.     </part>
  2636.     <part>
  2637.         <id>5</id>
  2638.         <type>button</type>
  2639.         <visible> <true /> </visible>
  2640.         <reserved5> 0 </reserved5>
  2641.         <reserved4> 0 </reserved4>
  2642.         <reserved3> 0 </reserved3>
  2643.         <reserved2> 0 </reserved2>
  2644.         <reserved1> 0 </reserved1>
  2645.         <enabled> <true /> </enabled>
  2646.         <rect>
  2647.             <left>29</left>
  2648.             <top>72</top>
  2649.             <right>146</right>
  2650.             <bottom>94</bottom>
  2651.         </rect>
  2652.         <style>roundrect</style>
  2653.         <showName> <true /> </showName>
  2654.         <highlight> <false /> </highlight>
  2655.         <autoHighlight> <false /> </autoHighlight>
  2656.         <sharedHighlight> <true /> </sharedHighlight>
  2657.         <family>0</family>
  2658.         <titleWidth>0</titleWidth>
  2659.         <icon>0</icon>
  2660.         <textAlign>center</textAlign>
  2661.         <font>Chicago</font>
  2662.         <textSize>12</textSize>
  2663.         <textStyle>plain</textStyle>
  2664.         <name>AddPict "scale"</name>
  2665.         <script>on mouseUp
  2666. -- The picture will be updated behind the rectangle
  2667. -- of the button PictDisplay.  This is just done to
  2668. -- make it easier to change the display rectangle, if desired.
  2669. if the hilite of button dither then
  2670. HTAddPict "HyperTint",the rect of btn "PictDisplay",dither,scale
  2671. else
  2672. HTAddPict "HyperTint",the rect of btn "PictDisplay",scale
  2673. end if
  2674.  
  2675. -- Report any error to the user.  A real-world stack might also
  2676. -- take some additional action in case of an error.
  2677. if the result is not empty then
  2678. answer the result
  2679. end if
  2680. end mouseUp</script>
  2681.     </part>
  2682.     <part>
  2683.         <id>6</id>
  2684.         <type>button</type>
  2685.         <visible> <true /> </visible>
  2686.         <reserved5> 0 </reserved5>
  2687.         <reserved4> 0 </reserved4>
  2688.         <reserved3> 0 </reserved3>
  2689.         <reserved2> 0 </reserved2>
  2690.         <reserved1> 0 </reserved1>
  2691.         <enabled> <true /> </enabled>
  2692.         <rect>
  2693.             <left>157</left>
  2694.             <top>72</top>
  2695.             <right>282</right>
  2696.             <bottom>94</bottom>
  2697.         </rect>
  2698.         <style>roundrect</style>
  2699.         <showName> <true /> </showName>
  2700.         <highlight> <false /> </highlight>
  2701.         <autoHighlight> <false /> </autoHighlight>
  2702.         <sharedHighlight> <true /> </sharedHighlight>
  2703.         <family>0</family>
  2704.         <titleWidth>0</titleWidth>
  2705.         <icon>0</icon>
  2706.         <textAlign>center</textAlign>
  2707.         <font>Chicago</font>
  2708.         <textSize>12</textSize>
  2709.         <textStyle>plain</textStyle>
  2710.         <name>AddPict "restore"</name>
  2711.         <script>on mouseUp
  2712. -- The picture will be updated behind the rectangle
  2713. -- of the button PictDisplay.  This is just done to
  2714. -- make it easier to change the display rectangle, if desired.
  2715. if the hilite of button dither then
  2716. HTAddPict "HyperTint",the rect of btn "PictDisplay",dither,restore
  2717. else
  2718. HTAddPict "HyperTint",the rect of btn "PictDisplay",restore
  2719. end if
  2720.  
  2721. -- Report any error to the user.  A real-world stack might also
  2722. -- take some additional action in case of an error.
  2723. if the result is not empty then
  2724. answer the result
  2725. end if
  2726. end mouseUp</script>
  2727.     </part>
  2728.     <part>
  2729.         <id>7</id>
  2730.         <type>button</type>
  2731.         <visible> <true /> </visible>
  2732.         <reserved5> 0 </reserved5>
  2733.         <reserved4> 0 </reserved4>
  2734.         <reserved3> 0 </reserved3>
  2735.         <reserved2> 0 </reserved2>
  2736.         <reserved1> 0 </reserved1>
  2737.         <enabled> <true /> </enabled>
  2738.         <rect>
  2739.             <left>157</left>
  2740.             <top>46</top>
  2741.             <right>282</right>
  2742.             <bottom>68</bottom>
  2743.         </rect>
  2744.         <style>roundrect</style>
  2745.         <showName> <true /> </showName>
  2746.         <highlight> <false /> </highlight>
  2747.         <autoHighlight> <false /> </autoHighlight>
  2748.         <sharedHighlight> <true /> </sharedHighlight>
  2749.         <family>0</family>
  2750.         <titleWidth>0</titleWidth>
  2751.         <icon>0</icon>
  2752.         <textAlign>center</textAlign>
  2753.         <font>Chicago</font>
  2754.         <textSize>12</textSize>
  2755.         <textStyle>plain</textStyle>
  2756.         <name>AddPict "center"</name>
  2757.         <script>on mouseUp
  2758. -- The picture will be updated behind the rectangle
  2759. -- of the button PictDisplay.  This is just done to
  2760. -- make it easier to change the display rectangle, if desired.
  2761. if the hilite of button dither then
  2762. HTAddPict "HyperTint",the rect of btn "PictDisplay",dither,center
  2763. else
  2764. HTAddPict "HyperTint",the rect of btn "PictDisplay",center
  2765. end if
  2766.  
  2767. -- Report any error to the user.  A real-world stack might also
  2768. -- take some additional action in case of an error.
  2769. if the result is not empty then
  2770. answer the result
  2771. end if
  2772. end mouseUp</script>
  2773.     </part>
  2774.     <part>
  2775.         <id>8</id>
  2776.         <type>button</type>
  2777.         <visible> <true /> </visible>
  2778.         <reserved5> 0 </reserved5>
  2779.         <reserved4> 0 </reserved4>
  2780.         <reserved3> 0 </reserved3>
  2781.         <reserved2> 0 </reserved2>
  2782.         <reserved1> 0 </reserved1>
  2783.         <enabled> <true /> </enabled>
  2784.         <rect>
  2785.             <left>292</left>
  2786.             <top>46</top>
  2787.             <right>414</right>
  2788.             <bottom>68</bottom>
  2789.         </rect>
  2790.         <style>roundrect</style>
  2791.         <showName> <true /> </showName>
  2792.         <highlight> <false /> </highlight>
  2793.         <autoHighlight> <false /> </autoHighlight>
  2794.         <sharedHighlight> <true /> </sharedHighlight>
  2795.         <family>0</family>
  2796.         <titleWidth>0</titleWidth>
  2797.         <icon>0</icon>
  2798.         <textAlign>center</textAlign>
  2799.         <font>Chicago</font>
  2800.         <textSize>12</textSize>
  2801.         <textStyle>plain</textStyle>
  2802.         <name>Clear the picture</name>
  2803.         <script>on mouseUp
  2804. -- This button just clears out all the backdrop picture
  2805. HTChangePict "none"
  2806. end mouseUp</script>
  2807.     </part>
  2808.     <part>
  2809.         <id>11</id>
  2810.         <type>field</type>
  2811.         <visible> <false /> </visible>
  2812.         <dontWrap> <false /> </dontWrap>
  2813.         <dontSearch> <true /> </dontSearch>
  2814.         <sharedText> <false /> </sharedText>
  2815.         <fixedLineHeight> <false /> </fixedLineHeight>
  2816.         <autoTab> <false /> </autoTab>
  2817.         <lockText> <false /> </lockText>
  2818.         <rect>
  2819.             <left>23</left>
  2820.             <top>106</top>
  2821.             <right>405</right>
  2822.             <bottom>229</bottom>
  2823.         </rect>
  2824.         <style>scrolling</style>
  2825.         <autoSelect> <false /> </autoSelect>
  2826.         <showLines> <false /> </showLines>
  2827.         <wideMargins> <false /> </wideMargins>
  2828.         <multipleLines> <false /> </multipleLines>
  2829.         <reservedFamily> 0 </reservedFamily>
  2830.         <titleWidth>0</titleWidth>
  2831.         <icon>0</icon>
  2832.         <textAlign>left</textAlign>
  2833.         <font>Geneva</font>
  2834.         <textSize>12</textSize>
  2835.         <textStyle>plain</textStyle>
  2836.         <textHeight>16</textHeight>
  2837.         <name>Test</name>
  2838.         <script></script>
  2839.     </part>
  2840.     <part>
  2841.         <id>14</id>
  2842.         <type>field</type>
  2843.         <visible> <true /> </visible>
  2844.         <dontWrap> <false /> </dontWrap>
  2845.         <dontSearch> <false /> </dontSearch>
  2846.         <sharedText> <false /> </sharedText>
  2847.         <fixedLineHeight> <false /> </fixedLineHeight>
  2848.         <autoTab> <false /> </autoTab>
  2849.         <lockText> <true /> </lockText>
  2850.         <rect>
  2851.             <left>303</left>
  2852.             <top>102</top>
  2853.             <right>433</right>
  2854.             <bottom>243</bottom>
  2855.         </rect>
  2856.         <style>shadow</style>
  2857.         <autoSelect> <false /> </autoSelect>
  2858.         <showLines> <false /> </showLines>
  2859.         <wideMargins> <false /> </wideMargins>
  2860.         <multipleLines> <false /> </multipleLines>
  2861.         <reservedFamily> 0 </reservedFamily>
  2862.         <titleWidth>0</titleWidth>
  2863.         <icon>0</icon>
  2864.         <textAlign>left</textAlign>
  2865.         <font>Geneva</font>
  2866.         <textSize>12</textSize>
  2867.         <textStyle>plain</textStyle>
  2868.         <textHeight>16</textHeight>
  2869.         <name>Description</name>
  2870.         <script></script>
  2871.     </part>
  2872.     <content>
  2873.         <layer>background</layer>
  2874.         <id>10</id>
  2875.         <text>HTAddPict Option Examples</text>
  2876.     </content>
  2877.     <content>
  2878.         <layer>card</layer>
  2879.         <id>11</id>
  2880.         <text>asdaasdasd
  2881. asdasdasd\
  2882. asdasasd
  2883. asdasdasdasdasdasdasd12345678901234567890123456789012345678901234567890
  2884. 12345678901234567890123456789012345678901234567890
  2885. 12345678901234567890123456789012345678901234567890
  2886. 12345678901234567890123456789012345678901234567890
  2887. 12345678901234567890123456789012345678901234567890
  2888. 12345678901234567890123456789012345678901234567890
  2889. 123456789012</text>
  2890.     </content>
  2891.     <content>
  2892.         <layer>background</layer>
  2893.         <id>9</id>
  2894.         <text>Look at the scripts to see the exact calling sequence</text>
  2895.     </content>
  2896.     <content>
  2897.         <layer>card</layer>
  2898.         <id>14</id>
  2899.         <text>The buttons on this card show the difference between the default AddPict action, and scaling, centering, or restoring</text>
  2900.     </content>
  2901.     <content>
  2902.         <layer>background</layer>
  2903.         <id>11</id>
  2904.         <text>XCMD Reference</text>
  2905.     </content>
  2906.     <name>HTAddPict Option Examples</name>
  2907.     <script>on try
  2908. htaddpict "hyperTint","100,100,300,200",scale
  2909. if the result is not empty then answer the result
  2910. end try
  2911.  
  2912. -- on closeCard
  2913. -- -- Rather silly, eh?  How's your beer?
  2914. -- put the rect of this card into effectRect
  2915. -- put item 3 of effectRect div 2 into item 3 of effectRect
  2916. -- put item 4 of effectRect div 2 into item 4 of effectRect
  2917. -- HTVisual "scroll right","65535,0,0",effectRect,0
  2918.  
  2919. -- put the rect of this card into effectRect
  2920. -- put item 3 of effectRect div 2 into item 1 of effectRect
  2921. -- put item 4 of effectRect div 2 into item 2 of effectRect
  2922. -- HTVisual "scroll left","0,65535,0",effectRect,0
  2923.  
  2924. -- put the rect of this card into effectRect
  2925. -- put item 3 of effectRect div 2 into item 1 of effectRect
  2926. -- put item 4 of effectRect div 2 into item 4 of effectRect
  2927. -- HTVisual "scroll up","65535,65535,0",effectRect,0
  2928.  
  2929. -- put the rect of this card into effectRect
  2930. -- put item 3 of effectRect div 2 into item 3 of effectRect
  2931. -- put item 4 of effectRect div 2 into item 2 of effectRect
  2932. -- HTVisual "scroll down","0,0,65535",effectRect,0
  2933.  
  2934. -- if the optionKey is down then
  2935. -- HTVisual "iris open"
  2936. -- else
  2937. -- put the rect of this card into effectRect
  2938. -- put item 3 of effectRect div 2 into item 3 of effectRect
  2939. -- put item 4 of effectRect div 2 into item 4 of effectRect
  2940. -- HTVisual "scroll right","card",effectRect,0
  2941.  
  2942. -- put the rect of this card into effectRect
  2943. -- put item 3 of effectRect div 2 into item 1 of effectRect
  2944. -- put item 4 of effectRect div 2 into item 2 of effectRect
  2945. -- HTVisual "scroll left","card",effectRect,0
  2946.  
  2947. -- put the rect of this card into effectRect
  2948. -- put item 3 of effectRect div 2 into item 1 of effectRect
  2949. -- put item 4 of effectRect div 2 into item 4 of effectRect
  2950. -- HTVisual "scroll up","card",effectRect,0
  2951.  
  2952. -- put the rect of this card into effectRect
  2953. -- put item 3 of effectRect div 2 into item 3 of effectRect
  2954. -- put item 4 of effectRect div 2 into item 2 of effectRect
  2955. -- HTVisual "scroll down","card",effectRect,0
  2956. -- end if
  2957. -- -- hide card field test
  2958.  
  2959. -- pass closeCard
  2960. -- end closeCard
  2961.  
  2962. on cr
  2963. HTRClear 1
  2964. HTRAddRect 1,the rect of card field "Description","shadow","field"
  2965. repeat with i = 1 to the number of buttons
  2966. if the style of button i is "roundRect" then
  2967. HTRAddRRect 1,the rect of button i,"noBorder"
  2968. end if
  2969. end repeat
  2970.  
  2971. HTWriteScheme the short name of this card
  2972. if the result is not empty then
  2973. answer "Error saving color scheme:  " & the result & "."
  2974. end if
  2975. go this card
  2976. end cr
  2977. </script>
  2978. </card>
  2979.  
  2980.  
  2981. card_20861.xml
  2982. <?xml version="1.0" encoding="utf-8" ?>
  2983. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  2984. <card>
  2985.     <id>20861</id>
  2986.     <filler1>0</filler1>
  2987.     <cantDelete> <false /> </cantDelete>
  2988.     <showPict> <true /> </showPict>
  2989.     <dontSearch> <false /> </dontSearch>
  2990.     <owner>20104</owner>
  2991.     <link rel="stylesheet" type="text/css" href="stylesheet_3268.css" />
  2992.     <part>
  2993.         <id>14</id>
  2994.         <type>field</type>
  2995.         <visible> <true /> </visible>
  2996.         <dontWrap> <false /> </dontWrap>
  2997.         <dontSearch> <false /> </dontSearch>
  2998.         <sharedText> <false /> </sharedText>
  2999.         <fixedLineHeight> <false /> </fixedLineHeight>
  3000.         <autoTab> <false /> </autoTab>
  3001.         <lockText> <true /> </lockText>
  3002.         <rect>
  3003.             <left>18</left>
  3004.             <top>44</top>
  3005.             <right>431</right>
  3006.             <bottom>145</bottom>
  3007.         </rect>
  3008.         <style>transparent</style>
  3009.         <autoSelect> <false /> </autoSelect>
  3010.         <showLines> <false /> </showLines>
  3011.         <wideMargins> <false /> </wideMargins>
  3012.         <multipleLines> <false /> </multipleLines>
  3013.         <reservedFamily> 0 </reservedFamily>
  3014.         <titleWidth>0</titleWidth>
  3015.         <icon>0</icon>
  3016.         <textAlign>left</textAlign>
  3017.         <font>Geneva</font>
  3018.         <textSize>12</textSize>
  3019.         <textStyle>plain</textStyle>
  3020.         <textHeight>16</textHeight>
  3021.         <name>Common Use</name>
  3022.         <script>on mouseDown
  3023. if the optionKey is down then
  3024. set the locktext of me to false
  3025. click at the clickLoc
  3026. else
  3027. followLink the clickText
  3028. end if
  3029. end mouseDown
  3030.  
  3031. on exitField
  3032. set the locktext of me to true
  3033. end exitField
  3034.  
  3035. on closeField
  3036. set the locktext of me to true
  3037. end closeField
  3038.  
  3039. </script>
  3040.     </part>
  3041.     <part>
  3042.         <id>9</id>
  3043.         <type>button</type>
  3044.         <visible> <true /> </visible>
  3045.         <reserved5> 0 </reserved5>
  3046.         <reserved4> 0 </reserved4>
  3047.         <reserved3> 0 </reserved3>
  3048.         <reserved2> 0 </reserved2>
  3049.         <reserved1> 0 </reserved1>
  3050.         <enabled> <true /> </enabled>
  3051.         <rect>
  3052.             <left>46</left>
  3053.             <top>233</top>
  3054.             <right>187</right>
  3055.             <bottom>255</bottom>
  3056.         </rect>
  3057.         <style>shadow</style>
  3058.         <showName> <true /> </showName>
  3059.         <highlight> <false /> </highlight>
  3060.         <autoHighlight> <false /> </autoHighlight>
  3061.         <sharedHighlight> <true /> </sharedHighlight>
  3062.         <family>0</family>
  3063.         <titleWidth>0</titleWidth>
  3064.         <icon>0</icon>
  3065.         <textAlign>center</textAlign>
  3066.         <font>Chicago</font>
  3067.         <textSize>12</textSize>
  3068.         <textStyle>plain</textStyle>
  3069.         <name>Show Popup</name>
  3070.         <script>on mouseUp
  3071. -- We'll put the popup into region 9:  this way it will
  3072. -- be "in front" of the regions used for the buttons.
  3073. HTRAddRect 9,the rect of card field "popup", "shadowBorder","field"
  3074. show card field "popup"
  3075. end mouseUp</script>
  3076.     </part>
  3077.     <part>
  3078.         <id>3</id>
  3079.         <type>field</type>
  3080.         <visible> <true /> </visible>
  3081.         <dontWrap> <false /> </dontWrap>
  3082.         <dontSearch> <false /> </dontSearch>
  3083.         <sharedText> <false /> </sharedText>
  3084.         <fixedLineHeight> <false /> </fixedLineHeight>
  3085.         <autoTab> <false /> </autoTab>
  3086.         <lockText> <true /> </lockText>
  3087.         <rect>
  3088.             <left>46</left>
  3089.             <top>176</top>
  3090.             <right>364</right>
  3091.             <bottom>210</bottom>
  3092.         </rect>
  3093.         <style>transparent</style>
  3094.         <autoSelect> <false /> </autoSelect>
  3095.         <showLines> <false /> </showLines>
  3096.         <wideMargins> <false /> </wideMargins>
  3097.         <multipleLines> <false /> </multipleLines>
  3098.         <reservedFamily> 0 </reservedFamily>
  3099.         <titleWidth>0</titleWidth>
  3100.         <icon>0</icon>
  3101.         <textAlign>left</textAlign>
  3102.         <font>Geneva</font>
  3103.         <textSize>12</textSize>
  3104.         <textStyle>plain</textStyle>
  3105.         <textHeight>16</textHeight>
  3106.         <name></name>
  3107.         <script></script>
  3108.     </part>
  3109.     <part>
  3110.         <id>4</id>
  3111.         <type>button</type>
  3112.         <visible> <true /> </visible>
  3113.         <reserved5> 0 </reserved5>
  3114.         <reserved4> 0 </reserved4>
  3115.         <reserved3> 0 </reserved3>
  3116.         <reserved2> 0 </reserved2>
  3117.         <reserved1> 0 </reserved1>
  3118.         <enabled> <true /> </enabled>
  3119.         <rect>
  3120.             <left>46</left>
  3121.             <top>152</top>
  3122.             <right>187</right>
  3123.             <bottom>174</bottom>
  3124.         </rect>
  3125.         <style>shadow</style>
  3126.         <showName> <true /> </showName>
  3127.         <highlight> <false /> </highlight>
  3128.         <autoHighlight> <false /> </autoHighlight>
  3129.         <sharedHighlight> <true /> </sharedHighlight>
  3130.         <family>0</family>
  3131.         <titleWidth>0</titleWidth>
  3132.         <icon>0</icon>
  3133.         <textAlign>center</textAlign>
  3134.         <font>Chicago</font>
  3135.         <textSize>12</textSize>
  3136.         <textStyle>plain</textStyle>
  3137.         <name>Drag Me</name>
  3138.         <script>on mousedown
  3139. -- This script uses region 6 as the "dragging region"
  3140. put the mouseV into oldV
  3141. put the mouseH into oldH
  3142. put the rect of me into startRect
  3143.  
  3144. put startRect into baseRect
  3145. get the mouseLoc
  3146. subtract item 2 of it from item 2 of baseRect
  3147. subtract item 2 of it from item 4 of baseRect
  3148. subtract item 1 of it from item 1 of baseRect
  3149. subtract item 1 of it from item 3 of baseRect
  3150. put startRect into newRect
  3151. HTRSubRect 1,newRect,shadowNoBorder
  3152.  
  3153. repeat while the mouse is down
  3154. HTRSubRect 6,newRect,shadowNoBorder
  3155. put baseRect into newRect
  3156. -- The mouseLoc function is used once instead of
  3157. -- individual calls to mouseH and mouseV.  This
  3158. -- is done because a rapidly moving mouse pointer
  3159. -- can change position significantly between
  3160. -- script lines.
  3161. get the mouseLoc
  3162. put item 1 of it into H
  3163. put item 2 of it into V
  3164. add H to item 1 of newRect
  3165. add H to item 3 of newRect
  3166. add V to item 2 of newRect
  3167. add V to item 4 of newRect
  3168. HTRAddRect 6,newRect,shadowNoBorder
  3169.  
  3170. set the rect of me to newRect
  3171. end repeat
  3172.  
  3173. --The choice now is to either put the button back to where it was
  3174. -- or to update the color scheme so that the color locations
  3175. -- will be right the next time the card is opened.  I can't
  3176. -- decide, so I'll do it both ways.
  3177. if the optionKey is down then
  3178. cr  -- Call our color assigning routines  (WILL NOT WORK IN DEMO VERSION)
  3179. else
  3180. -- HTRClear 6   -- (HTRClear is not included in the demo version,
  3181. --                  so use HTRSubRect instead)
  3182. HTRSubRect 6,newRect,shadowNoBorder
  3183. HTRAddRect 1,startRect,shadowNoBorder
  3184. set the rectangle of me to startRect
  3185. end if
  3186. end mousedown
  3187.  
  3188. </script>
  3189.     </part>
  3190.     <part>
  3191.         <id>5</id>
  3192.         <type>button</type>
  3193.         <visible> <true /> </visible>
  3194.         <reserved5> 0 </reserved5>
  3195.         <reserved4> 0 </reserved4>
  3196.         <reserved3> 0 </reserved3>
  3197.         <reserved2> 0 </reserved2>
  3198.         <reserved1> 0 </reserved1>
  3199.         <enabled> <true /> </enabled>
  3200.         <rect>
  3201.             <left>222</left>
  3202.             <top>152</top>
  3203.             <right>364</right>
  3204.             <bottom>174</bottom>
  3205.         </rect>
  3206.         <style>shadow</style>
  3207.         <showName> <true /> </showName>
  3208.         <highlight> <false /> </highlight>
  3209.         <autoHighlight> <false /> </autoHighlight>
  3210.         <sharedHighlight> <true /> </sharedHighlight>
  3211.         <family>0</family>
  3212.         <titleWidth>0</titleWidth>
  3213.         <icon>0</icon>
  3214.         <textAlign>center</textAlign>
  3215.         <font>Chicago</font>
  3216.         <textSize>12</textSize>
  3217.         <textStyle>plain</textStyle>
  3218.         <name>Moving Button</name>
  3219.         <script>on mousedown
  3220. put the rect of me into startRect
  3221. put startRect into newRect
  3222. HTRSubRect 1,newRect,shadowNoBorder
  3223. repeat while location of me is within the rect of this card
  3224. HTRSubRect 6,newRect,shadowNoBorder
  3225.  
  3226. -- Decide on the new location
  3227. subtract 5 from item 1 of newRect
  3228. add 15 to item 2 of newRect
  3229. subtract 5 from item 3 of newRect
  3230. add 15 to item 4 of newRect
  3231.  
  3232. HTRAddRect 6,newRect,shadowNoBorder
  3233.  
  3234. set the rect of me to newRect
  3235. end repeat
  3236. -- HTRClear 6  -- (HTRClear is not included in demo version,
  3237. --                 so use HTRSubRect instead.)
  3238. HTRSubRect 6,newRect,shadowNoBorder
  3239. HTRAddRect 1,startRect,shadowNoBorder
  3240. set the rectangle of me to startRect
  3241. end mousedown</script>
  3242.     </part>
  3243.     <part>
  3244.         <id>6</id>
  3245.         <type>field</type>
  3246.         <visible> <false /> </visible>
  3247.         <dontWrap> <false /> </dontWrap>
  3248.         <dontSearch> <true /> </dontSearch>
  3249.         <sharedText> <false /> </sharedText>
  3250.         <fixedLineHeight> <false /> </fixedLineHeight>
  3251.         <autoTab> <false /> </autoTab>
  3252.         <lockText> <true /> </lockText>
  3253.         <rect>
  3254.             <left>42</left>
  3255.             <top>114</top>
  3256.             <right>395</right>
  3257.             <bottom>221</bottom>
  3258.         </rect>
  3259.         <style>shadow</style>
  3260.         <autoSelect> <false /> </autoSelect>
  3261.         <showLines> <false /> </showLines>
  3262.         <wideMargins> <false /> </wideMargins>
  3263.         <multipleLines> <false /> </multipleLines>
  3264.         <reservedFamily> 0 </reservedFamily>
  3265.         <titleWidth>0</titleWidth>
  3266.         <icon>0</icon>
  3267.         <textAlign>left</textAlign>
  3268.         <font>Geneva</font>
  3269.         <textSize>12</textSize>
  3270.         <textStyle>plain</textStyle>
  3271.         <textHeight>16</textHeight>
  3272.         <name>PopUp</name>
  3273.         <script>on mouseDown
  3274. HTRSubRect 9,the rect of me, "shadowBorder","field"
  3275. hide me
  3276. end mouseDown</script>
  3277.     </part>
  3278.     <part>
  3279.         <id>13</id>
  3280.         <type>button</type>
  3281.         <visible> <true /> </visible>
  3282.         <reserved5> 0 </reserved5>
  3283.         <reserved4> 0 </reserved4>
  3284.         <reserved3> 0 </reserved3>
  3285.         <reserved2> 0 </reserved2>
  3286.         <reserved1> 0 </reserved1>
  3287.         <enabled> <true /> </enabled>
  3288.         <rect>
  3289.             <left>223</left>
  3290.             <top>233</top>
  3291.             <right>364</right>
  3292.             <bottom>256</bottom>
  3293.         </rect>
  3294.         <style>shadow</style>
  3295.         <showName> <true /> </showName>
  3296.         <highlight> <false /> </highlight>
  3297.         <autoHighlight> <false /> </autoHighlight>
  3298.         <sharedHighlight> <true /> </sharedHighlight>
  3299.         <family>0</family>
  3300.         <titleWidth>0</titleWidth>
  3301.         <icon>0</icon>
  3302.         <textAlign>center</textAlign>
  3303.         <font>Chicago</font>
  3304.         <textSize>12</textSize>
  3305.         <textStyle>plain</textStyle>
  3306.         <name>Random Ugliness</name>
  3307.         <script>-- There's not much point to this button but it does
  3308. -- illustrate the use of HTRForeground and HTRBackground
  3309.  
  3310. on mouseDown
  3311. global htxyNextcardEffect
  3312.  
  3313. changeColor
  3314. put the ticks + 15 into htxyNextcardEffect
  3315. end mouseDown
  3316.  
  3317. -- Oh, what the heck, let's cycle
  3318. on mouseStillDown
  3319. global htxyNextcardEffect
  3320.  
  3321. if the ticks > htxyNextcardEffect then
  3322. changeColor
  3323. put the ticks + 15 into htxyNextcardEffect
  3324.  
  3325. end if
  3326. end mouseStillDown
  3327.  
  3328. -- on mouseUp
  3329. -- changeColor
  3330. -- end mouseUp
  3331.  
  3332. on changeColor
  3333.  
  3334. -- Choose a random foreground color
  3335. put random(65535) & "," & random(65535) & "," & random(65535)  into fc
  3336.  
  3337. -- Choose a random background color
  3338. put random(65535) & "," & random(65535) & "," & random(65535)  into bc
  3339.  
  3340. HTRForeground 8,fc
  3341. HTRBackground 8,bc,"noDelay"  -- Cause an immediate screen update
  3342. end changeColor</script>
  3343.     </part>
  3344.     <content>
  3345.         <layer>card</layer>
  3346.         <id>3</id>
  3347.         <text>Movement is slow and painful, but it may be of use in special cases or on faster machines.  
  3348.  
  3349.  
  3350. </text>
  3351.     </content>
  3352.     <content>
  3353.         <layer>background</layer>
  3354.         <id>10</id>
  3355.         <text>Color Region Examples</text>
  3356.     </content>
  3357.     <content>
  3358.         <layer>card</layer>
  3359.         <id>6</id>
  3360.         <text>I am a popup field!
  3361.  
  3362. Pleased to meet you!  
  3363.  
  3364. Click on me to make me disappear.</text>
  3365.     </content>
  3366.     <content>
  3367.         <layer>background</layer>
  3368.         <id>11</id>
  3369.         <text>XCMD Reference</text>
  3370.     </content>
  3371.     <content>
  3372.         <layer>card</layer>
  3373.         <id>14</id>
  3374.         <text><span class="style2">he most common use of the the color region commands can be found in the ΓÇ£</span><span class="style7">on cr</span><span class="style2">ΓÇ¥ handlers throughout this stack (including this card's script).  See the card ΓÇ£</span><span class="style22"><a href="#" class="group">Moving Things Around</a></span><span class="style2">ΓÇ¥ in the Notes and Tips section for an explanation of the ΓÇ£</span><span class="style7">on cr</span><span class="style2">ΓÇ¥ handler strategy.  The examples below show some additional uses for changing color regions dynamically.</span></text>
  3375.     </content>
  3376.     <content>
  3377.         <layer>background</layer>
  3378.         <id>12</id>
  3379.         <text>
  3380. Moving Things Around
  3381. </text>
  3382.     </content>
  3383.     <content>
  3384.         <layer>background</layer>
  3385.         <id>13</id>
  3386.         <text>
  3387. 5160
  3388. </text>
  3389.     </content>
  3390.     <name>Color Region Examples</name>
  3391.     <script>on colorSetup
  3392. -- This card has a special colorSetup handler because it must allow
  3393. -- for the possibility that the user will modify the
  3394. -- screen environment while the popup field is showing
  3395. HTColorScheme the short name of this card
  3396. if the visible of card field "popup" then
  3397. HTRAddRect 9,the rect of card field "popup", "shadowBorder","field"
  3398. end if
  3399. end colorSetup
  3400.  
  3401. on cr
  3402. HtChangePict "none"
  3403. ClearAllRegions   -- Call HTRClear for each region
  3404. HTRAddRect 1,the rect of button "Show Popup","shadowNoBorder"
  3405. HTRAddRect 1,the rect of button "Drag Me","shadowNoBorder"
  3406. HTRAddRect 1,the rect of button "Moving Button","shadowNoBorder"
  3407. HTRAddRect 8,the rect of button "Random Ugliness","shadowNoBorder"
  3408.  
  3409. -- Normally, we would not include color adjustments
  3410. -- in a cr handler but since we always want to
  3411. -- make region 6 have the same colors as region 1, we
  3412. -- might as well do it here.
  3413. HTRForeground 6,HTRCurrFC(1)
  3414. HTRBackground 6,HTRCurrBC(1)
  3415.  
  3416. -- Also I want an easy way to revert the Random Ugliness
  3417. -- button to a sane color, so let's give it the same
  3418. -- color as region 1.
  3419. HTRForeground 8,HTRCurrFC(1)
  3420. HTRBackground 8,HTRCurrBC(1)
  3421.  
  3422.  
  3423. HTWriteScheme the short name of this card
  3424. if the result is not empty then
  3425. answer "Error adjusting color layout.  " & the result & "."
  3426. end if
  3427. go to this card -- Make all changes appear
  3428. end cr
  3429.  
  3430. on saveAsOther
  3431. -- Trap attempts to save color scheme under card name
  3432. -- and make region 6 the same as region 1
  3433.  
  3434. HTRForeground 6,HTRCurrFC(1)
  3435. HTRBackground 6,HTRCurrBC(1)
  3436. pass saveAsOther
  3437. end saveAsOther
  3438.  
  3439.  
  3440. -- on openCard
  3441. -- htcolorscheme the short name of this card
  3442. -- if the result is not empty then
  3443. -- answer the result
  3444. -- end if
  3445. -- end openCard
  3446.  
  3447. on closeCard
  3448. HTRSubRect 9,the rect of card field "popup", "shadowBorder","field"
  3449. hide card field "popup"
  3450. pass closeCard
  3451. end closeCard
  3452. </script>
  3453. </card>
  3454.  
  3455.  
  3456. card_14255.xml
  3457. <?xml version="1.0" encoding="utf-8" ?>
  3458. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  3459. <card>
  3460.     <id>14255</id>
  3461.     <filler1>0</filler1>
  3462.     <cantDelete> <false /> </cantDelete>
  3463.     <showPict> <true /> </showPict>
  3464.     <dontSearch> <false /> </dontSearch>
  3465.     <owner>3997</owner>
  3466.     <link rel="stylesheet" type="text/css" href="stylesheet_3268.css" />
  3467.     <part>
  3468.         <id>2</id>
  3469.         <type>button</type>
  3470.         <visible> <true /> </visible>
  3471.         <reserved5> 0 </reserved5>
  3472.         <reserved4> 0 </reserved4>
  3473.         <reserved3> 0 </reserved3>
  3474.         <reserved2> 0 </reserved2>
  3475.         <reserved1> 0 </reserved1>
  3476.         <enabled> <true /> </enabled>
  3477.         <rect>
  3478.             <left>414</left>
  3479.             <top>9</top>
  3480.             <right>446</right>
  3481.             <bottom>41</bottom>
  3482.         </rect>
  3483.         <style>transparent</style>
  3484.         <showName> <false /> </showName>
  3485.         <highlight> <false /> </highlight>
  3486.         <autoHighlight> <false /> </autoHighlight>
  3487.         <sharedHighlight> <true /> </sharedHighlight>
  3488.         <family>0</family>
  3489.         <titleWidth>0</titleWidth>
  3490.         <icon>26425</icon>
  3491.         <textAlign>center</textAlign>
  3492.         <font>Chicago</font>
  3493.         <textSize>12</textSize>
  3494.         <textStyle>plain</textStyle>
  3495.         <name>HideGoRight</name>
  3496.         <script>on mouseUp
  3497. -- if htuisinstalled() then
  3498. -- -- htvisual "wipe down","65535,0,0","","",1
  3499. -- htvisual "wipe left"
  3500. -- else
  3501. -- visual wipe left fast
  3502. -- end if
  3503. go next card
  3504. end mouseUp</script>
  3505.     </part>
  3506.     <part>
  3507.         <id>3</id>
  3508.         <type>button</type>
  3509.         <visible> <true /> </visible>
  3510.         <reserved5> 0 </reserved5>
  3511.         <reserved4> 0 </reserved4>
  3512.         <reserved3> 0 </reserved3>
  3513.         <reserved2> 0 </reserved2>
  3514.         <reserved1> 0 </reserved1>
  3515.         <enabled> <true /> </enabled>
  3516.         <rect>
  3517.             <left>0</left>
  3518.             <top>7</top>
  3519.             <right>32</right>
  3520.             <bottom>41</bottom>
  3521.         </rect>
  3522.         <style>transparent</style>
  3523.         <showName> <false /> </showName>
  3524.         <highlight> <false /> </highlight>
  3525.         <autoHighlight> <false /> </autoHighlight>
  3526.         <sharedHighlight> <true /> </sharedHighlight>
  3527.         <family>0</family>
  3528.         <titleWidth>0</titleWidth>
  3529.         <icon>902</icon>
  3530.         <textAlign>center</textAlign>
  3531.         <font>Chicago</font>
  3532.         <textSize>12</textSize>
  3533.         <textStyle>plain</textStyle>
  3534.         <name>HideGoLeft</name>
  3535.         <script>on mouseUp
  3536. -- if  htuisinstalled() then
  3537. -- --   htvisual "scroll right","white"
  3538. -- htvisual "wipe right"
  3539. -- else
  3540. -- visual wipe right fast
  3541. -- end if
  3542. go previous card
  3543. end mouseUp</script>
  3544.     </part>
  3545.     <content>
  3546.         <layer>background</layer>
  3547.         <id>4</id>
  3548.         <text>HTVisual XCMD</text>
  3549.     </content>
  3550.     <content>
  3551.         <layer>background</layer>
  3552.         <id>6</id>
  3553.         <text><span class="style10">     HTVisual  <effect>,<color>,<rectangle>,<delay>,<increment>
  3554. </span><span class="style2">
  3555. The HTVisual command allows visual effects to occur on the next card transition or screen unlocking.
  3556.  
  3557. Each call to HTVisual must specify the effect parameter.  All other parameters are optional.  An optional parameter will be set to its default value if the parameter is not passed or (if a parameter further in the list is required) by passing the parameter as an empty string.
  3558.  
  3559. Multiple effects can be specified.  The effects will be performed in sequence on the next card transition.
  3560.  
  3561. </span><span class="style21">Effect Parameter</span><span class="style9">
  3562.  
  3563. </span><span class="style2">The following effects are supported by HyperTint
  3564.  
  3565. </span><span class="style12">plain</span><span class="style2">:  This effect causes an immediate transition, with no visual effect.</span><span class="style12">
  3566. </span><span class="style2">    
  3567. </span><span class="style12">dissolve1</span><span class="style2">,</span><span class="style12"> dissolve2</span><span class="style2">,</span><span class="style12"> dissolve3</span><span class="style2">:  A set of dissolve effects.  Dissolve1 is the coarsest, and fastest.  Dissolve3 is the finest, and slowest.
  3568.  
  3569. </span><span class="style12">stripes1</span><span class="style2">, </span><span class="style12">stripes2</span><span class="style2">:  Dissolve effects where the transition is done in stripes.</span><span class="style12">
  3570.  
  3571. scroll left</span><span class="style2">, </span><span class="style12">scroll right</span><span class="style2">, </span><span class="style12">scroll up</span><span class="style2">, </span><span class="style12">scroll down</span><span class="style2">,
  3572. </span><span class="style12">wipe left</span><span class="style2">,</span><span class="style12"> wipe right</span><span class="style2">,</span><span class="style12"> wipe up</span><span class="style2">, </span><span class="style12">wipe down</span><span class="style2">,</span><span class="style12">
  3573. iris open</span><span class="style2">, </span><span class="style12">iris close</span><span class="style2">:  As seen in HyperCard</span><span class="style12">
  3574.  
  3575. stretch from center</span><span class="style2">, </span><span class="style12">stretch from top</span><span class="style2">, </span><span class="style12">stretch from bottom</span><span class="style2">:  </span><span class="style12">
  3576. </span><span class="style2"> Also as seen in HyperCard, or at least something similar.</span><span class="style12">
  3577.  
  3578. blend</span><span class="style2">, </span><span class="style12">slow blend</span><span class="style2">:  Color dissolves.  Instead of choosing which pixels in the new image get written to the screen at each step, every pixel gets displayed but each pixel makes a color transition from its old color to its new color.  These effects are very slow.  For full screen blends, performance is probably only acceptable on high machines such as the Quadra (and maybe not even then).  On lower performance, blends can still be useful when blending small areas of the card image.  For example, the ΓÇ£HyperTintΓÇ¥ title is displayed using a blend effect during this stack's opening sequence.
  3579.  
  3580. Remember to put the effect name in quotation marks.  (Actually, this is only required for those effects, such as "wipe left", with more than one word.)  Otherwise, HyperCard will get confused.
  3581.  
  3582.  </span><span class="style21">Color Parameter</span><span class="style9">
  3583.  
  3584. </span><span class="style2">Visual effects, be default, make a transition to the new card image.  Visual effects can also make a transition to a color.
  3585. </span><span class="style9">
  3586. </span><span class="style2">The </span><span class="style22"><a href="#" class="group">color parameter</a></span><span class="style2"> is a list of three integers (0-65535), separated by commas.  Each number specifies the amount of the three color components:  red, green, and blue. 
  3587.  
  3588. Instead of specifying the three color components, the following keywords can also be specified:  </span><span class="style12">white</span><span class="style2">, </span><span class="style12">black</span><span class="style2">, </span><span class="style12">gray</span><span class="style2">, </span><span class="style12">light gray</span><span class="style2">, </span><span class="style12">dark gray</span><span class="style2">. 
  3589.  
  3590. The color parameter can also be passed as </span><span class="style12">card</span><span class="style2">, which will perform a transition to the new card image.  This is equivalent to the case where a color is not specified.
  3591.  
  3592. </span><span class="style21">Rectangle parameter</span><span class="style12">
  3593.  
  3594. </span><span class="style2">By default, the visual effect will take place over the entire display area that is being updated. When moving between cards or unlocking the screen, the area being updated would be the entire card image. 
  3595.  
  3596. A script can choose to restrict the effect to a smaller rectangle by passing a rectangle parameter.  This can be done to make the slower visual effects more efficient or to cause different sections of the card to have different transitions.
  3597.  
  3598. </span><span class="style21">Delay and increment parameters
  3599. </span><span class="style2">
  3600. The delay and increment parameters allow fine tuning of the visual effects.  By default, these parameters will be set to reasonable values.  Adjusting this values allows control of the speed and quality of the visual effect.  They are HyperTint's equivalents to HyperCard's visual effect speed modifiers ("fast", "very slow", etc.)
  3601.  
  3602. The delay parameter controls how fast successive ΓÇ£stepsΓÇ¥ in the visual effect will occur.  It specifies the number of ticks (60 ticks = 1 second) between the start of one step and the start of the next step.  If, when running on a slower Macintosh model, HyperTint cannot keep up with the rate specified, HyperTint does the steps just as fast as it can.  Specifying a delay parameter of 0 means ΓÇ£go as fast as possible,ΓÇ¥ no matter which Mac model is being used.
  3603.  
  3604. The increment parameter controls the ΓÇ£smoothnessΓÇ¥ of each step.  Depending  on its value, it only effects certain visual effects.  It can be set to </span><span class="style12">smooth</span><span class="style2"> or to </span><span class="style12">4</span><span class="style2">, </span><span class="style12">8</span><span class="style2">, </span><span class="style12">16</span><span class="style2">, </span><span class="style12">32</span><span class="style2">, or </span><span class="style12">64</span><span class="style2">. Any other numbers will be rejected.
  3605.  
  3606. Setting the parameter to </span><span class="style12">smooth</span><span class="style2"> affects only the dissolve effects (</span><span class="style12">dissolve1</span><span class="style2">,</span><span class="style12"> dissolve2</span><span class="style2">,</span><span class="style12"> dissolve3</span><span class="style2">, </span><span class="style12">stripes1</span><span class="style2">, </span><span class="style12">stripes2</span><span class="style2">).  Without the smooth parameter, the dissolve effects ΓÇ£sweepΓÇ¥ down the card when moving between cards.  This sweeping does not seem to be a problem when the cards share a similar background:  for instance, if large areas of each card are the same shade of gray.  When dissolving between cards that have substantially different images or dissolving to a solid color, this sweeping becomes quite noticeable.  The </span><span class="style12">smooth</span><span class="style2"> parameter eliminates this sweeping effect.  The effect actually takes significantly longer ΓÇö with the speed penalty increasing with each additional color region being used ΓÇö but the updates to the screen occur quicker.  This ΓÇ£smoothnessΓÇ¥ may be useful in some cases, particularly if there are not many color regions being used.
  3607.  
  3608. Setting the increment parameter to </span><span class="style12">4</span><span class="style2">, </span><span class="style12">8</span><span class="style2">, </span><span class="style12">16</span><span class="style2">, </span><span class="style12">32</span><span class="style2">, or </span><span class="style12">64 </span><span class="style2">will affect the </span><span class="style12">scroll left</span><span class="style2">, </span><span class="style12">scroll right</span><span class="style2">, </span><span class="style12">scroll up</span><span class="style2">, </span><span class="style12">scroll down</span><span class="style2">, </span><span class="style12">wipe left</span><span class="style2">,</span><span class="style12"> wipe right</span><span class="style2">,</span><span class="style12"> wipe up</span><span class="style2">, </span><span class="style12">wipe down</span><span class="style2">,</span><span class="style12">
  3609. iris open</span><span class="style2">, </span><span class="style12">iris close</span><span class="style2">,</span><span class="style12"> stretch from center</span><span class="style2">, </span><span class="style12">stretch from top</span><span class="style2">, and </span><span class="style12">stretch from bottom </span><span class="style2">visual effects.  For the scrolls and wipes, the meaning of the increment parameter is straightforward:  it controls how many pixels the incoming image will move on each step.  For the stretch and iris effects, the relationship is less straightforward, but smaller increment values mean ΓÇ£finer and slowerΓÇ¥ while larger values mean ΓÇ£coarser and faster.ΓÇ¥
  3610.  
  3611. The delay and increment parameters work together to produce the best effect.  Short delays look best when teamed with larger increments.  For slower effects, specifying smaller increments will make the effect appear smoother.  Of course, if it is known that the stack will be run only on Quadras, small increments can be used for all effects, for the ultimate in visual comfort.
  3612.  
  3613. </span><span class="style21">Special calling sequences</span><span class="style2">
  3614.  
  3615. In addition to its normal choice of parameters, HTVisual has some additional options to handle special cases.  In these cases, HTVisual is called with a single keyword parameter:  </span><span class="style12">allow</span><span class="style2">, </span><span class="style12">disallow</span><span class="style2">, or </span><span class="style12">anyUpdate</span><span class="style2">.
  3616.  
  3617. The </span><span class="style12">allow</span><span class="style2"> and </span><span class="style12">disallow</span><span class="style2"> keywords act as a master switch.  If the command </span><span class="style7">HTVisual "disallow"</span><span class="style2"> is included in a script, all calls to HTVisual will have no effect.  All visual effects are turned off.  The command </span><span class="style7">HTVisual "allow"</span><span class="style2"> can be used to turn visual effects back on, if desired.  These two versions of the HTVisual command are provided as a convenience to the scripter who is trying to adapt to low memory conditions.  If there is not enough memory available to create HyperTint's offscreen buffers with the same depth as the screen, an advanced scripter may choose to try </span><span class="style22"><a href="#" class="group">installing at a lower pixel depth</a></span><span class="style2">.  The memory requirements are reduced at the cost of aesthetic beauty and speed.  One place where the speed penalty is particularly high is during visual effects, because the penalty occurs at each ΓÇ£stepΓÇ¥ of the visual effect.  The scripter may want to disable visual effects if it was necessary to install HyperTint in a memory-saving time-chewing configuration.  A single </span><span class="style7">HTVisual "disallow"</span><span class="style2"> in the handler doing the HyperTint installation will turn off all visual effects for the stack.  If this special option was unavailable, the scripter would have to set a global variable and include extra code before every HTVisual call to check this variable.
  3618.  
  3619. </span><span class="style12">AnyUpdate</span><span class="style2"> is a very specialized, advanced option.  Don't worry about it.  On the other hand, if you insist on knowing ΓǪ
  3620.  
  3621. Normally,  visual effects should occur when HyperCard moves to the next card or when the screen is unlocked.  This is HyperTint's default behaviour.  Under some cases, it may be desirable to have the visual effects occur the next time HyperCard writes something to the screen.  Including the command </span><span class="style7">HTVisual "anyUpdate"</span><span class="style2"> will cause all pending visual effects to occur on the next screen update, no matter how much or how little of the screen is being updated.  This might be useful if you want to have </span><span class="style22"><a href="#" class="group">a visual effect when making a button or field visible</a></span><span class="style2"> (without having to lock and unlock the screen).
  3622.  
  3623. [When the </span><span class="style12">anyUpdate</span><span class="style2"> option is used,  the default rectangle for all effects is the rectangle that is being updated, rather than the card rectangle.  This default rectangle might be, for instance, the bounding rectangle of the field or button being displayed.  It is dependent on how HyperCard chooses to refresh the screen image.]
  3624.  
  3625. </span><span class="style21">Examples</span><span class="style9">
  3626.  
  3627. </span><span class="style10">     -- Simple card transition
  3628.      HTVisual "scroll left"
  3629.      go next card
  3630.  
  3631.      -- Slide show effect (???)
  3632.      HTVisual "scroll right","white"
  3633.      HTVisual "scroll left"
  3634.  
  3635.      -- Show a field, dissolving it into existence
  3636.      --    As we show the field, we also add it to one
  3637.      --    of the color regions, so that it can have
  3638.      --    colors of its own.
  3639.      HTRAddRect 5,the rect of field "Notes"
  3640.      HTVisual "dissolve3"
  3641.      HTVisual "anyUpdate"  -- all effects will be triggered
  3642.      --                       by the next screen update
  3643.      show field "Notes"</span><span class="style2">
  3644. </span><span class="style9">
  3645. </span><span class="style21">Error Results</span><span class="style9">
  3646. </span><span class="style2">
  3647. If the command was successful, HyperCard's </span><span class="style7">the result</span><span class="style2"> function will return an empty string.  Other possible results are:
  3648.  
  3649. "Not Installed":  HyperTint is not installed in the current stack.
  3650.  
  3651. "Too many effects":  Only 15 visual effects can be pending.
  3652.  
  3653. "Bad Speed":  The speed parameter is not a number or it's so large that HyperTint figures there must be a mistake.
  3654.  
  3655. "Bad increment":  The increment parameter was not a valid choice.
  3656.  
  3657. "Bad Color":  HyperTint could not make sense of the color parameter.
  3658.  
  3659. "Bad Rectangle":  HyperTint could not make sense of the rectangle parameter.
  3660.  
  3661. "Unknown visual effect":  
  3662.  
  3663. </span><span class="style21">Notes</span><span class="style2">
  3664.  
  3665.  
  3666. </span></text>
  3667.     </content>
  3668.     <content>
  3669.         <layer>background</layer>
  3670.         <id>8</id>
  3671.         <text>
  3672. color parameter
  3673. installing at a lower bit depth
  3674. installing at a lower pixel depth
  3675. a visual effect when making a button or field visible
  3676. </text>
  3677.     </content>
  3678.     <content>
  3679.         <layer>background</layer>
  3680.         <id>9</id>
  3681.         <text>
  3682. 24169
  3683. 3747
  3684. 3747
  3685. 20591
  3686. </text>
  3687.     </content>
  3688.     <content>
  3689.         <layer>background</layer>
  3690.         <id>10</id>
  3691.         <text>XCMD Reference</text>
  3692.     </content>
  3693.     <name>HTVisual XCMD</name>
  3694.     <script>on closeCard
  3695. -- I'm sorry.  I'm just getting carried away here.
  3696.  
  3697.  
  3698. put the height of this card into cardHeight
  3699. put the rect of this card into cardRect
  3700.  
  3701. put cardHeight div 8 into item 4 of cardRect
  3702. htVisual "wipe right","65535,0,0",cardRect,1,64
  3703.  
  3704. put cardHeight div 8 into item 2 of cardRect
  3705. put cardHeight div 4 into item 4 of cardRect
  3706. htVisual "wipe left","0,65353,0",cardRect,1,64
  3707.  
  3708. put cardHeight div 4 into item 2 of cardRect
  3709. put (3 * cardHeight) div 8 into item 4 of cardRect
  3710. htVisual "wipe right","50000,50000,0",cardRect,1,64
  3711.  
  3712. put (3 * cardHeight) div 8 into item 2 of cardRect
  3713. put cardHeight div 2 into item 4 of cardRect
  3714. htVisual "wipe left","0,0,65535",cardRect,1,64
  3715.  
  3716. put cardHeight div 2 into item 2 of cardRect
  3717. put (5 * cardHeight) div 8 into item 4 of cardRect
  3718. htVisual "wipe right","50000,10000,30000",cardRect,1,64
  3719.  
  3720. put (5 * cardHeight) div 8 into item 2 of cardRect
  3721. put (3 * cardHeight) div 4 into item 4 of cardRect
  3722. htVisual "wipe left","10000,20000,30000",cardRect,1,64
  3723.  
  3724. put (3 * cardHeight) div 4 into item 2 of cardRect
  3725. put (7 * cardHeight) div 8 into item 4 of cardRect
  3726. htVisual "wipe right","65300,0,0",cardRect,1,64
  3727.  
  3728. put (7 * cardHeight) div 8 into item 2 of cardRect
  3729. put cardHeight  into item 4 of cardRect
  3730. htVisual "wipe left","10000,65300,20000",cardRect,1,64
  3731.  
  3732. HtVisual "iris open"
  3733. pass closeCard
  3734. end closeCard</script>
  3735. </card>
  3736.  
  3737.  
  3738. card_24485.xml
  3739. <?xml version="1.0" encoding="utf-8" ?>
  3740. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  3741. <card>
  3742.     <id>24485</id>
  3743.     <filler1>0</filler1>
  3744.     <cantDelete> <false /> </cantDelete>
  3745.     <showPict> <true /> </showPict>
  3746.     <dontSearch> <false /> </dontSearch>
  3747.     <owner>20104</owner>
  3748.     <link rel="stylesheet" type="text/css" href="stylesheet_3268.css" />
  3749.     <part>
  3750.         <id>1</id>
  3751.         <type>button</type>
  3752.         <visible> <true /> </visible>
  3753.         <reserved5> 0 </reserved5>
  3754.         <reserved4> 0 </reserved4>
  3755.         <reserved3> 0 </reserved3>
  3756.         <reserved2> 0 </reserved2>
  3757.         <reserved1> 0 </reserved1>
  3758.         <enabled> <true /> </enabled>
  3759.         <rect>
  3760.             <left>301</left>
  3761.             <top>48</top>
  3762.             <right>443</right>
  3763.             <bottom>178</bottom>
  3764.         </rect>
  3765.         <style>shadow</style>
  3766.         <showName> <false /> </showName>
  3767.         <highlight> <false /> </highlight>
  3768.         <autoHighlight> <false /> </autoHighlight>
  3769.         <sharedHighlight> <true /> </sharedHighlight>
  3770.         <family>0</family>
  3771.         <titleWidth>0</titleWidth>
  3772.         <icon>0</icon>
  3773.         <textAlign>center</textAlign>
  3774.         <font>Chicago</font>
  3775.         <textSize>12</textSize>
  3776.         <textStyle>plain</textStyle>
  3777.         <name>TransitionType</name>
  3778.         <script></script>
  3779.     </part>
  3780.     <part>
  3781.         <id>2</id>
  3782.         <type>field</type>
  3783.         <visible> <true /> </visible>
  3784.         <dontWrap> <false /> </dontWrap>
  3785.         <dontSearch> <false /> </dontSearch>
  3786.         <sharedText> <false /> </sharedText>
  3787.         <fixedLineHeight> <false /> </fixedLineHeight>
  3788.         <autoTab> <false /> </autoTab>
  3789.         <lockText> <true /> </lockText>
  3790.         <rect>
  3791.             <left>309</left>
  3792.             <top>48</top>
  3793.             <right>435</right>
  3794.             <bottom>82</bottom>
  3795.         </rect>
  3796.         <style>transparent</style>
  3797.         <autoSelect> <false /> </autoSelect>
  3798.         <showLines> <false /> </showLines>
  3799.         <wideMargins> <false /> </wideMargins>
  3800.         <multipleLines> <false /> </multipleLines>
  3801.         <reservedFamily> 0 </reservedFamily>
  3802.         <titleWidth>0</titleWidth>
  3803.         <icon>0</icon>
  3804.         <textAlign>left</textAlign>
  3805.         <font>Chicago</font>
  3806.         <textSize>12</textSize>
  3807.         <textStyle>plain</textStyle>
  3808.         <textHeight>16</textHeight>
  3809.         <name></name>
  3810.         <script></script>
  3811.     </part>
  3812.     <part>
  3813.         <id>3</id>
  3814.         <type>button</type>
  3815.         <visible> <true /> </visible>
  3816.         <reserved5> 0 </reserved5>
  3817.         <reserved4> 0 </reserved4>
  3818.         <reserved3> 0 </reserved3>
  3819.         <reserved2> 0 </reserved2>
  3820.         <reserved1> 0 </reserved1>
  3821.         <enabled> <true /> </enabled>
  3822.         <rect>
  3823.             <left>309</left>
  3824.             <top>80</top>
  3825.             <right>428</right>
  3826.             <bottom>102</bottom>
  3827.         </rect>
  3828.         <style>radiobutton</style>
  3829.         <showName> <true /> </showName>
  3830.         <highlight> <false /> </highlight>
  3831.         <autoHighlight> <true /> </autoHighlight>
  3832.         <sharedHighlight> <true /> </sharedHighlight>
  3833.         <family>0</family>
  3834.         <titleWidth>0</titleWidth>
  3835.         <icon>0</icon>
  3836.         <textAlign>center</textAlign>
  3837.         <font>Chicago</font>
  3838.         <textSize>12</textSize>
  3839.         <textStyle>plain</textStyle>
  3840.         <name>A similar card</name>
  3841.         <script>on mouseUp
  3842. set the hilite of button "A dissimilar card" to false
  3843. set the hilite of button "Black" to false
  3844. set the hilite of button "White" to false
  3845. set the hilite of button "Gray" to false
  3846. set the hilite of button "Blue" to false
  3847. answer "In order to show visual effects between two similar cards, "┬¼
  3848. & "the script will jump to one of the command description cards, "┬¼
  3849. & "demonstrate the effect, and then jump back."
  3850. end mouseUp</script>
  3851.     </part>
  3852.     <part>
  3853.         <id>17</id>
  3854.         <type>button</type>
  3855.         <visible> <true /> </visible>
  3856.         <reserved5> 0 </reserved5>
  3857.         <reserved4> 0 </reserved4>
  3858.         <reserved3> 0 </reserved3>
  3859.         <reserved2> 0 </reserved2>
  3860.         <reserved1> 0 </reserved1>
  3861.         <enabled> <true /> </enabled>
  3862.         <rect>
  3863.             <left>301</left>
  3864.             <top>185</top>
  3865.             <right>443</right>
  3866.             <bottom>277</bottom>
  3867.         </rect>
  3868.         <style>shadow</style>
  3869.         <showName> <false /> </showName>
  3870.         <highlight> <false /> </highlight>
  3871.         <autoHighlight> <false /> </autoHighlight>
  3872.         <sharedHighlight> <true /> </sharedHighlight>
  3873.         <family>0</family>
  3874.         <titleWidth>0</titleWidth>
  3875.         <icon>0</icon>
  3876.         <textAlign>center</textAlign>
  3877.         <font>Chicago</font>
  3878.         <textSize>12</textSize>
  3879.         <textStyle>plain</textStyle>
  3880.         <name>DelayParameter</name>
  3881.         <script></script>
  3882.     </part>
  3883.     <part>
  3884.         <id>46</id>
  3885.         <type>button</type>
  3886.         <visible> <true /> </visible>
  3887.         <reserved5> 0 </reserved5>
  3888.         <reserved4> 0 </reserved4>
  3889.         <reserved3> 0 </reserved3>
  3890.         <reserved2> 0 </reserved2>
  3891.         <reserved1> 0 </reserved1>
  3892.         <enabled> <true /> </enabled>
  3893.         <rect>
  3894.             <left>5</left>
  3895.             <top>48</top>
  3896.             <right>104</right>
  3897.             <bottom>216</bottom>
  3898.         </rect>
  3899.         <style>shadow</style>
  3900.         <showName> <false /> </showName>
  3901.         <highlight> <false /> </highlight>
  3902.         <autoHighlight> <false /> </autoHighlight>
  3903.         <sharedHighlight> <true /> </sharedHighlight>
  3904.         <family>0</family>
  3905.         <titleWidth>0</titleWidth>
  3906.         <icon>0</icon>
  3907.         <textAlign>center</textAlign>
  3908.         <font>Chicago</font>
  3909.         <textSize>12</textSize>
  3910.         <textStyle>plain</textStyle>
  3911.         <name>Dissolves</name>
  3912.         <script></script>
  3913.     </part>
  3914.     <part>
  3915.         <id>4</id>
  3916.         <type>button</type>
  3917.         <visible> <true /> </visible>
  3918.         <reserved5> 0 </reserved5>
  3919.         <reserved4> 0 </reserved4>
  3920.         <reserved3> 0 </reserved3>
  3921.         <reserved2> 0 </reserved2>
  3922.         <reserved1> 0 </reserved1>
  3923.         <enabled> <true /> </enabled>
  3924.         <rect>
  3925.             <left>309</left>
  3926.             <top>102</top>
  3927.             <right>439</right>
  3928.             <bottom>124</bottom>
  3929.         </rect>
  3930.         <style>radiobutton</style>
  3931.         <showName> <true /> </showName>
  3932.         <highlight> <true /> </highlight>
  3933.         <autoHighlight> <true /> </autoHighlight>
  3934.         <sharedHighlight> <true /> </sharedHighlight>
  3935.         <family>0</family>
  3936.         <titleWidth>0</titleWidth>
  3937.         <icon>0</icon>
  3938.         <textAlign>center</textAlign>
  3939.         <font>Chicago</font>
  3940.         <textSize>12</textSize>
  3941.         <textStyle>plain</textStyle>
  3942.         <name>A dissimilar card</name>
  3943.         <script>on mouseUp
  3944. set the hilite of button "A similar card" to false
  3945. set the hilite of button "Black" to false
  3946. set the hilite of button "White" to false
  3947. set the hilite of button "Gray" to false
  3948. set the hilite of button "Blue" to false
  3949. end mouseUp</script>
  3950.     </part>
  3951.     <part>
  3952.         <id>5</id>
  3953.         <type>button</type>
  3954.         <visible> <true /> </visible>
  3955.         <reserved5> 0 </reserved5>
  3956.         <reserved4> 0 </reserved4>
  3957.         <reserved3> 0 </reserved3>
  3958.         <reserved2> 0 </reserved2>
  3959.         <reserved1> 0 </reserved1>
  3960.         <enabled> <true /> </enabled>
  3961.         <rect>
  3962.             <left>309</left>
  3963.             <top>123</top>
  3964.             <right>367</right>
  3965.             <bottom>145</bottom>
  3966.         </rect>
  3967.         <style>radiobutton</style>
  3968.         <showName> <true /> </showName>
  3969.         <highlight> <false /> </highlight>
  3970.         <autoHighlight> <true /> </autoHighlight>
  3971.         <sharedHighlight> <true /> </sharedHighlight>
  3972.         <family>0</family>
  3973.         <titleWidth>0</titleWidth>
  3974.         <icon>0</icon>
  3975.         <textAlign>center</textAlign>
  3976.         <font>Chicago</font>
  3977.         <textSize>12</textSize>
  3978.         <textStyle>plain</textStyle>
  3979.         <name>black</name>
  3980.         <script>on mouseUp
  3981. set the hilite of button "A similar card" to false
  3982. set the hilite of button "A dissimilar card" to false
  3983. set the hilite of button "White" to false
  3984. set the hilite of button "Gray" to false
  3985. set the hilite of button "Blue" to false
  3986. end mouseUp</script>
  3987.     </part>
  3988.     <part>
  3989.         <id>6</id>
  3990.         <type>button</type>
  3991.         <visible> <true /> </visible>
  3992.         <reserved5> 0 </reserved5>
  3993.         <reserved4> 0 </reserved4>
  3994.         <reserved3> 0 </reserved3>
  3995.         <reserved2> 0 </reserved2>
  3996.         <reserved1> 0 </reserved1>
  3997.         <enabled> <true /> </enabled>
  3998.         <rect>
  3999.             <left>371</left>
  4000.             <top>123</top>
  4001.             <right>430</right>
  4002.             <bottom>145</bottom>
  4003.         </rect>
  4004.         <style>radiobutton</style>
  4005.         <showName> <true /> </showName>
  4006.         <highlight> <false /> </highlight>
  4007.         <autoHighlight> <true /> </autoHighlight>
  4008.         <sharedHighlight> <true /> </sharedHighlight>
  4009.         <family>0</family>
  4010.         <titleWidth>0</titleWidth>
  4011.         <icon>0</icon>
  4012.         <textAlign>center</textAlign>
  4013.         <font>Chicago</font>
  4014.         <textSize>12</textSize>
  4015.         <textStyle>plain</textStyle>
  4016.         <name>white</name>
  4017.         <script>on mouseUp
  4018. set the hilite of button "A similar card" to false
  4019. set the hilite of button "A dissimilar card" to false
  4020. set the hilite of button "Black" to false
  4021. set the hilite of button "Gray" to false
  4022. set the hilite of button "Blue" to false
  4023. end mouseUp</script>
  4024.     </part>
  4025.     <part>
  4026.         <id>7</id>
  4027.         <type>button</type>
  4028.         <visible> <true /> </visible>
  4029.         <reserved5> 0 </reserved5>
  4030.         <reserved4> 0 </reserved4>
  4031.         <reserved3> 0 </reserved3>
  4032.         <reserved2> 0 </reserved2>
  4033.         <reserved1> 0 </reserved1>
  4034.         <enabled> <true /> </enabled>
  4035.         <rect>
  4036.             <left>309</left>
  4037.             <top>144</top>
  4038.             <right>368</right>
  4039.             <bottom>166</bottom>
  4040.         </rect>
  4041.         <style>radiobutton</style>
  4042.         <showName> <true /> </showName>
  4043.         <highlight> <false /> </highlight>
  4044.         <autoHighlight> <true /> </autoHighlight>
  4045.         <sharedHighlight> <true /> </sharedHighlight>
  4046.         <family>0</family>
  4047.         <titleWidth>0</titleWidth>
  4048.         <icon>0</icon>
  4049.         <textAlign>center</textAlign>
  4050.         <font>Chicago</font>
  4051.         <textSize>12</textSize>
  4052.         <textStyle>plain</textStyle>
  4053.         <name>gray</name>
  4054.         <script>on mouseUp
  4055. set the hilite of button "A similar card" to false
  4056. set the hilite of button "A dissimilar card" to false
  4057. set the hilite of button "White" to false
  4058. set the hilite of button "Black" to false
  4059. set the hilite of button "Blue" to false
  4060. end mouseUp</script>
  4061.     </part>
  4062.     <part>
  4063.         <id>8</id>
  4064.         <type>button</type>
  4065.         <visible> <true /> </visible>
  4066.         <reserved5> 0 </reserved5>
  4067.         <reserved4> 0 </reserved4>
  4068.         <reserved3> 0 </reserved3>
  4069.         <reserved2> 0 </reserved2>
  4070.         <reserved1> 0 </reserved1>
  4071.         <enabled> <true /> </enabled>
  4072.         <rect>
  4073.             <left>371</left>
  4074.             <top>144</top>
  4075.             <right>425</right>
  4076.             <bottom>166</bottom>
  4077.         </rect>
  4078.         <style>radiobutton</style>
  4079.         <showName> <true /> </showName>
  4080.         <highlight> <false /> </highlight>
  4081.         <autoHighlight> <true /> </autoHighlight>
  4082.         <sharedHighlight> <true /> </sharedHighlight>
  4083.         <family>0</family>
  4084.         <titleWidth>0</titleWidth>
  4085.         <icon>0</icon>
  4086.         <textAlign>center</textAlign>
  4087.         <font>Chicago</font>
  4088.         <textSize>12</textSize>
  4089.         <textStyle>plain</textStyle>
  4090.         <name>blue</name>
  4091.         <script>on mouseUp
  4092. set the hilite of button "A similar card" to false
  4093. set the hilite of button "A dissimilar card" to false
  4094. set the hilite of button "White" to false
  4095. set the hilite of button "Gray" to false
  4096. set the hilite of button "Black" to false
  4097. end mouseUp</script>
  4098.     </part>
  4099.     <part>
  4100.         <id>10</id>
  4101.         <type>field</type>
  4102.         <visible> <true /> </visible>
  4103.         <dontWrap> <false /> </dontWrap>
  4104.         <dontSearch> <false /> </dontSearch>
  4105.         <sharedText> <false /> </sharedText>
  4106.         <fixedLineHeight> <false /> </fixedLineHeight>
  4107.         <autoTab> <false /> </autoTab>
  4108.         <lockText> <true /> </lockText>
  4109.         <rect>
  4110.             <left>303</left>
  4111.             <top>185</top>
  4112.             <right>425</right>
  4113.             <bottom>204</bottom>
  4114.         </rect>
  4115.         <style>transparent</style>
  4116.         <autoSelect> <false /> </autoSelect>
  4117.         <showLines> <false /> </showLines>
  4118.         <wideMargins> <false /> </wideMargins>
  4119.         <multipleLines> <false /> </multipleLines>
  4120.         <reservedFamily> 0 </reservedFamily>
  4121.         <titleWidth>0</titleWidth>
  4122.         <icon>0</icon>
  4123.         <textAlign>left</textAlign>
  4124.         <font>Chicago</font>
  4125.         <textSize>12</textSize>
  4126.         <textStyle>plain</textStyle>
  4127.         <textHeight>16</textHeight>
  4128.         <name></name>
  4129.         <script></script>
  4130.     </part>
  4131.     <part>
  4132.         <id>11</id>
  4133.         <type>button</type>
  4134.         <visible> <true /> </visible>
  4135.         <reserved5> 0 </reserved5>
  4136.         <reserved4> 0 </reserved4>
  4137.         <reserved3> 0 </reserved3>
  4138.         <reserved2> 0 </reserved2>
  4139.         <reserved1> 0 </reserved1>
  4140.         <enabled> <true /> </enabled>
  4141.         <rect>
  4142.             <left>304</left>
  4143.             <top>201</top>
  4144.             <right>431</right>
  4145.             <bottom>223</bottom>
  4146.         </rect>
  4147.         <style>radiobutton</style>
  4148.         <showName> <true /> </showName>
  4149.         <highlight> <false /> </highlight>
  4150.         <autoHighlight> <true /> </autoHighlight>
  4151.         <sharedHighlight> <true /> </sharedHighlight>
  4152.         <family>0</family>
  4153.         <titleWidth>0</titleWidth>
  4154.         <icon>0</icon>
  4155.         <textAlign>center</textAlign>
  4156.         <font>Chicago</font>
  4157.         <textSize>12</textSize>
  4158.         <textStyle>plain</textStyle>
  4159.         <name>Fast as Possible</name>
  4160.         <script>on mouseUp
  4161. set the hilite of button "Default Delay" to false
  4162. set the hilite of button "Value ┬╗" to false
  4163. put 0 into card field "DelayValue"
  4164. end mouseUp</script>
  4165.     </part>
  4166.     <part>
  4167.         <id>12</id>
  4168.         <type>button</type>
  4169.         <visible> <true /> </visible>
  4170.         <reserved5> 0 </reserved5>
  4171.         <reserved4> 0 </reserved4>
  4172.         <reserved3> 0 </reserved3>
  4173.         <reserved2> 0 </reserved2>
  4174.         <reserved1> 0 </reserved1>
  4175.         <enabled> <true /> </enabled>
  4176.         <rect>
  4177.             <left>304</left>
  4178.             <top>224</top>
  4179.             <right>418</right>
  4180.             <bottom>246</bottom>
  4181.         </rect>
  4182.         <style>radiobutton</style>
  4183.         <showName> <true /> </showName>
  4184.         <highlight> <true /> </highlight>
  4185.         <autoHighlight> <true /> </autoHighlight>
  4186.         <sharedHighlight> <true /> </sharedHighlight>
  4187.         <family>0</family>
  4188.         <titleWidth>0</titleWidth>
  4189.         <icon>0</icon>
  4190.         <textAlign>center</textAlign>
  4191.         <font>Chicago</font>
  4192.         <textSize>12</textSize>
  4193.         <textStyle>plain</textStyle>
  4194.         <name>Default delay</name>
  4195.         <script>on mouseUp
  4196. set the hilite of button "Fast as Possible" to false
  4197. set the hilite of button "Value ┬╗" to false
  4198. put empty into card field "DelayValue"
  4199. end mouseUp</script>
  4200.     </part>
  4201.     <part>
  4202.         <id>14</id>
  4203.         <type>button</type>
  4204.         <visible> <true /> </visible>
  4205.         <reserved5> 0 </reserved5>
  4206.         <reserved4> 0 </reserved4>
  4207.         <reserved3> 0 </reserved3>
  4208.         <reserved2> 0 </reserved2>
  4209.         <reserved1> 0 </reserved1>
  4210.         <enabled> <true /> </enabled>
  4211.         <rect>
  4212.             <left>304</left>
  4213.             <top>248</top>
  4214.             <right>376</right>
  4215.             <bottom>270</bottom>
  4216.         </rect>
  4217.         <style>radiobutton</style>
  4218.         <showName> <true /> </showName>
  4219.         <highlight> <false /> </highlight>
  4220.         <autoHighlight> <true /> </autoHighlight>
  4221.         <sharedHighlight> <true /> </sharedHighlight>
  4222.         <family>0</family>
  4223.         <titleWidth>0</titleWidth>
  4224.         <icon>0</icon>
  4225.         <textAlign>center</textAlign>
  4226.         <font>Chicago</font>
  4227.         <textSize>12</textSize>
  4228.         <textStyle>plain</textStyle>
  4229.         <name>Value ┬╗</name>
  4230.         <script>on mouseUp
  4231. set the hilite of button "Fast as Possible" to false
  4232. set the hilite of button "Default Delay" to false
  4233. end mouseUp</script>
  4234.     </part>
  4235.     <part>
  4236.         <id>15</id>
  4237.         <type>field</type>
  4238.         <visible> <true /> </visible>
  4239.         <dontWrap> <false /> </dontWrap>
  4240.         <dontSearch> <false /> </dontSearch>
  4241.         <sharedText> <false /> </sharedText>
  4242.         <fixedLineHeight> <true /> </fixedLineHeight>
  4243.         <autoTab> <true /> </autoTab>
  4244.         <lockText> <false /> </lockText>
  4245.         <rect>
  4246.             <left>383</left>
  4247.             <top>248</top>
  4248.             <right>424</right>
  4249.             <bottom>267</bottom>
  4250.         </rect>
  4251.         <style>rectangle</style>
  4252.         <autoSelect> <false /> </autoSelect>
  4253.         <showLines> <false /> </showLines>
  4254.         <wideMargins> <false /> </wideMargins>
  4255.         <multipleLines> <false /> </multipleLines>
  4256.         <reservedFamily> 0 </reservedFamily>
  4257.         <titleWidth>0</titleWidth>
  4258.         <icon>0</icon>
  4259.         <textAlign>left</textAlign>
  4260.         <font>Chicago</font>
  4261.         <textSize>12</textSize>
  4262.         <textStyle>plain</textStyle>
  4263.         <textHeight>16</textHeight>
  4264.         <name>DelayValue</name>
  4265.         <script>on keyDown
  4266. if not the hilite of button "Value ┬╗" then
  4267. put the selectedChunk into saveSelection
  4268. set the hilite of button "Fast as Possible" to false
  4269. set the hilite of button "Default Delay" to false
  4270. set the hilite of button "Value ┬╗" to true
  4271. select saveSelection
  4272. end if
  4273. pass keydown
  4274. end keyDown
  4275.  
  4276. </script>
  4277.     </part>
  4278.     <part>
  4279.         <id>18</id>
  4280.         <type>button</type>
  4281.         <visible> <true /> </visible>
  4282.         <reserved5> 0 </reserved5>
  4283.         <reserved4> 0 </reserved4>
  4284.         <reserved3> 0 </reserved3>
  4285.         <reserved2> 0 </reserved2>
  4286.         <reserved1> 0 </reserved1>
  4287.         <enabled> <true /> </enabled>
  4288.         <rect>
  4289.             <left>13</left>
  4290.             <top>53</top>
  4291.             <right>98</right>
  4292.             <bottom>75</bottom>
  4293.         </rect>
  4294.         <style>roundrect</style>
  4295.         <showName> <true /> </showName>
  4296.         <highlight> <false /> </highlight>
  4297.         <autoHighlight> <true /> </autoHighlight>
  4298.         <sharedHighlight> <true /> </sharedHighlight>
  4299.         <family>0</family>
  4300.         <titleWidth>0</titleWidth>
  4301.         <icon>0</icon>
  4302.         <textAlign>center</textAlign>
  4303.         <font>Chicago</font>
  4304.         <textSize>12</textSize>
  4305.         <textStyle>plain</textStyle>
  4306.         <name>Dissolve1</name>
  4307.         <script>on mouseUp
  4308. if the hilite of button "Smooth" then
  4309. doEffect "dissolve1","smooth"
  4310. else
  4311. doEffect "dissolve1"
  4312. end if
  4313. -- The doEffect handler can be found in the card script.
  4314. end mouseUp</script>
  4315.     </part>
  4316.     <part>
  4317.         <id>19</id>
  4318.         <type>button</type>
  4319.         <visible> <true /> </visible>
  4320.         <reserved5> 0 </reserved5>
  4321.         <reserved4> 0 </reserved4>
  4322.         <reserved3> 0 </reserved3>
  4323.         <reserved2> 0 </reserved2>
  4324.         <reserved1> 0 </reserved1>
  4325.         <enabled> <true /> </enabled>
  4326.         <rect>
  4327.             <left>13</left>
  4328.             <top>79</top>
  4329.             <right>98</right>
  4330.             <bottom>101</bottom>
  4331.         </rect>
  4332.         <style>roundrect</style>
  4333.         <showName> <true /> </showName>
  4334.         <highlight> <false /> </highlight>
  4335.         <autoHighlight> <true /> </autoHighlight>
  4336.         <sharedHighlight> <true /> </sharedHighlight>
  4337.         <family>0</family>
  4338.         <titleWidth>0</titleWidth>
  4339.         <icon>0</icon>
  4340.         <textAlign>center</textAlign>
  4341.         <font>Chicago</font>
  4342.         <textSize>12</textSize>
  4343.         <textStyle>plain</textStyle>
  4344.         <name>Dissolve2</name>
  4345.         <script>on mouseUp
  4346. if the hilite of button "Smooth" then
  4347. doEffect "dissolve2","smooth"
  4348. else
  4349. doEffect "dissolve2"
  4350. end if
  4351. -- The doEffect handler can be found in the card script.
  4352. end mouseUp</script>
  4353.     </part>
  4354.     <part>
  4355.         <id>20</id>
  4356.         <type>button</type>
  4357.         <visible> <true /> </visible>
  4358.         <reserved5> 0 </reserved5>
  4359.         <reserved4> 0 </reserved4>
  4360.         <reserved3> 0 </reserved3>
  4361.         <reserved2> 0 </reserved2>
  4362.         <reserved1> 0 </reserved1>
  4363.         <enabled> <true /> </enabled>
  4364.         <rect>
  4365.             <left>13</left>
  4366.             <top>106</top>
  4367.             <right>98</right>
  4368.             <bottom>128</bottom>
  4369.         </rect>
  4370.         <style>roundrect</style>
  4371.         <showName> <true /> </showName>
  4372.         <highlight> <false /> </highlight>
  4373.         <autoHighlight> <true /> </autoHighlight>
  4374.         <sharedHighlight> <true /> </sharedHighlight>
  4375.         <family>0</family>
  4376.         <titleWidth>0</titleWidth>
  4377.         <icon>0</icon>
  4378.         <textAlign>center</textAlign>
  4379.         <font>Chicago</font>
  4380.         <textSize>12</textSize>
  4381.         <textStyle>plain</textStyle>
  4382.         <name>Dissolve3</name>
  4383.         <script>on mouseUp
  4384. if the hilite of button "Smooth" then
  4385. doEffect "dissolve3","smooth"
  4386. else
  4387. doEffect "dissolve3"
  4388. end if
  4389. -- The doEffect handler can be found in the card script.
  4390. end mouseUp</script>
  4391.     </part>
  4392.     <part>
  4393.         <id>21</id>
  4394.         <type>button</type>
  4395.         <visible> <true /> </visible>
  4396.         <reserved5> 0 </reserved5>
  4397.         <reserved4> 0 </reserved4>
  4398.         <reserved3> 0 </reserved3>
  4399.         <reserved2> 0 </reserved2>
  4400.         <reserved1> 0 </reserved1>
  4401.         <enabled> <true /> </enabled>
  4402.         <rect>
  4403.             <left>13</left>
  4404.             <top>132</top>
  4405.             <right>98</right>
  4406.             <bottom>154</bottom>
  4407.         </rect>
  4408.         <style>roundrect</style>
  4409.         <showName> <true /> </showName>
  4410.         <highlight> <false /> </highlight>
  4411.         <autoHighlight> <true /> </autoHighlight>
  4412.         <sharedHighlight> <true /> </sharedHighlight>
  4413.         <family>0</family>
  4414.         <titleWidth>0</titleWidth>
  4415.         <icon>0</icon>
  4416.         <textAlign>center</textAlign>
  4417.         <font>Chicago</font>
  4418.         <textSize>12</textSize>
  4419.         <textStyle>plain</textStyle>
  4420.         <name>Stripes1</name>
  4421.         <script>on mouseUp
  4422. if the hilite of button "Smooth" then
  4423. doEffect "stripes1","smooth"
  4424. else
  4425. doEffect "stripes1"
  4426. end if
  4427. -- The doEffect handler can be found in the card script.
  4428. end mouseUp</script>
  4429.     </part>
  4430.     <part>
  4431.         <id>22</id>
  4432.         <type>button</type>
  4433.         <visible> <true /> </visible>
  4434.         <reserved5> 0 </reserved5>
  4435.         <reserved4> 0 </reserved4>
  4436.         <reserved3> 0 </reserved3>
  4437.         <reserved2> 0 </reserved2>
  4438.         <reserved1> 0 </reserved1>
  4439.         <enabled> <true /> </enabled>
  4440.         <rect>
  4441.             <left>13</left>
  4442.             <top>158</top>
  4443.             <right>98</right>
  4444.             <bottom>180</bottom>
  4445.         </rect>
  4446.         <style>roundrect</style>
  4447.         <showName> <true /> </showName>
  4448.         <highlight> <false /> </highlight>
  4449.         <autoHighlight> <true /> </autoHighlight>
  4450.         <sharedHighlight> <true /> </sharedHighlight>
  4451.         <family>0</family>
  4452.         <titleWidth>0</titleWidth>
  4453.         <icon>0</icon>
  4454.         <textAlign>center</textAlign>
  4455.         <font>Chicago</font>
  4456.         <textSize>12</textSize>
  4457.         <textStyle>plain</textStyle>
  4458.         <name>Stripes2</name>
  4459.         <script>on mouseUp
  4460. if the hilite of button "Smooth" then
  4461. doEffect "stripes2","smooth"
  4462. else
  4463. doEffect "stripes2"
  4464. end if
  4465. -- The doEffect handler can be found in the card script.
  4466. end mouseUp</script>
  4467.     </part>
  4468.     <part>
  4469.         <id>47</id>
  4470.         <type>button</type>
  4471.         <visible> <true /> </visible>
  4472.         <reserved5> 0 </reserved5>
  4473.         <reserved4> 0 </reserved4>
  4474.         <reserved3> 0 </reserved3>
  4475.         <reserved2> 0 </reserved2>
  4476.         <reserved1> 0 </reserved1>
  4477.         <enabled> <true /> </enabled>
  4478.         <rect>
  4479.             <left>109</left>
  4480.             <top>48</top>
  4481.             <right>295</right>
  4482.             <bottom>277</bottom>
  4483.         </rect>
  4484.         <style>shadow</style>
  4485.         <showName> <false /> </showName>
  4486.         <highlight> <false /> </highlight>
  4487.         <autoHighlight> <false /> </autoHighlight>
  4488.         <sharedHighlight> <true /> </sharedHighlight>
  4489.         <family>0</family>
  4490.         <titleWidth>0</titleWidth>
  4491.         <icon>0</icon>
  4492.         <textAlign>center</textAlign>
  4493.         <font>Chicago</font>
  4494.         <textSize>12</textSize>
  4495.         <textStyle>plain</textStyle>
  4496.         <name>WipesAndScrolls</name>
  4497.         <script></script>
  4498.     </part>
  4499.     <part>
  4500.         <id>24</id>
  4501.         <type>button</type>
  4502.         <visible> <true /> </visible>
  4503.         <reserved5> 0 </reserved5>
  4504.         <reserved4> 0 </reserved4>
  4505.         <reserved3> 0 </reserved3>
  4506.         <reserved2> 0 </reserved2>
  4507.         <reserved1> 0 </reserved1>
  4508.         <enabled> <true /> </enabled>
  4509.         <rect>
  4510.             <left>112</left>
  4511.             <top>53</top>
  4512.             <right>197</right>
  4513.             <bottom>75</bottom>
  4514.         </rect>
  4515.         <style>roundrect</style>
  4516.         <showName> <true /> </showName>
  4517.         <highlight> <false /> </highlight>
  4518.         <autoHighlight> <true /> </autoHighlight>
  4519.         <sharedHighlight> <true /> </sharedHighlight>
  4520.         <family>0</family>
  4521.         <titleWidth>0</titleWidth>
  4522.         <icon>0</icon>
  4523.         <textAlign>center</textAlign>
  4524.         <font>Chicago</font>
  4525.         <textSize>12</textSize>
  4526.         <textStyle>plain</textStyle>
  4527.         <name>Wipe Left</name>
  4528.         <script>on mouseUp
  4529. doEffect "wipe left",getIncrement()
  4530. -- (GetIncrement is a function in the card script that checks
  4531. --  the radio buttons related to the incrment parameters)
  4532.  
  4533. -- The doEffect handler can be found in the card script.
  4534. end mouseUp</script>
  4535.     </part>
  4536.     <part>
  4537.         <id>25</id>
  4538.         <type>button</type>
  4539.         <visible> <true /> </visible>
  4540.         <reserved5> 0 </reserved5>
  4541.         <reserved4> 0 </reserved4>
  4542.         <reserved3> 0 </reserved3>
  4543.         <reserved2> 0 </reserved2>
  4544.         <reserved1> 0 </reserved1>
  4545.         <enabled> <true /> </enabled>
  4546.         <rect>
  4547.             <left>203</left>
  4548.             <top>53</top>
  4549.             <right>288</right>
  4550.             <bottom>75</bottom>
  4551.         </rect>
  4552.         <style>roundrect</style>
  4553.         <showName> <true /> </showName>
  4554.         <highlight> <false /> </highlight>
  4555.         <autoHighlight> <true /> </autoHighlight>
  4556.         <sharedHighlight> <true /> </sharedHighlight>
  4557.         <family>0</family>
  4558.         <titleWidth>0</titleWidth>
  4559.         <icon>0</icon>
  4560.         <textAlign>center</textAlign>
  4561.         <font>Chicago</font>
  4562.         <textSize>12</textSize>
  4563.         <textStyle>plain</textStyle>
  4564.         <name>Wipe Right</name>
  4565.         <script>on mouseUp
  4566. doEffect "wipe right",getIncrement()
  4567. -- (GetIncrement is a function in the card script that checks
  4568. --  the radio buttons related to the incrment parameters)
  4569.  
  4570. -- The doEffect handler can be found in the card script.
  4571. end mouseUp</script>
  4572.     </part>
  4573.     <part>
  4574.         <id>26</id>
  4575.         <type>button</type>
  4576.         <visible> <true /> </visible>
  4577.         <reserved5> 0 </reserved5>
  4578.         <reserved4> 0 </reserved4>
  4579.         <reserved3> 0 </reserved3>
  4580.         <reserved2> 0 </reserved2>
  4581.         <reserved1> 0 </reserved1>
  4582.         <enabled> <true /> </enabled>
  4583.         <rect>
  4584.             <left>112</left>
  4585.             <top>79</top>
  4586.             <right>197</right>
  4587.             <bottom>101</bottom>
  4588.         </rect>
  4589.         <style>roundrect</style>
  4590.         <showName> <true /> </showName>
  4591.         <highlight> <false /> </highlight>
  4592.         <autoHighlight> <true /> </autoHighlight>
  4593.         <sharedHighlight> <true /> </sharedHighlight>
  4594.         <family>0</family>
  4595.         <titleWidth>0</titleWidth>
  4596.         <icon>0</icon>
  4597.         <textAlign>center</textAlign>
  4598.         <font>Chicago</font>
  4599.         <textSize>12</textSize>
  4600.         <textStyle>plain</textStyle>
  4601.         <name>Wipe Up</name>
  4602.         <script>on mouseUp
  4603. doEffect "wipe up",getIncrement()
  4604. -- (GetIncrement is a function in the card script that checks
  4605. --  the radio buttons related to the incrment parameters)
  4606.  
  4607. -- The doEffect handler can be found in the card script.
  4608.  
  4609. end mouseUp</script>
  4610.     </part>
  4611.     <part>
  4612.         <id>27</id>
  4613.         <type>button</type>
  4614.         <visible> <true /> </visible>
  4615.         <reserved5> 0 </reserved5>
  4616.         <reserved4> 0 </reserved4>
  4617.         <reserved3> 0 </reserved3>
  4618.         <reserved2> 0 </reserved2>
  4619.         <reserved1> 0 </reserved1>
  4620.         <enabled> <true /> </enabled>
  4621.         <rect>
  4622.             <left>203</left>
  4623.             <top>79</top>
  4624.             <right>288</right>
  4625.             <bottom>101</bottom>
  4626.         </rect>
  4627.         <style>roundrect</style>
  4628.         <showName> <true /> </showName>
  4629.         <highlight> <false /> </highlight>
  4630.         <autoHighlight> <true /> </autoHighlight>
  4631.         <sharedHighlight> <true /> </sharedHighlight>
  4632.         <family>0</family>
  4633.         <titleWidth>0</titleWidth>
  4634.         <icon>0</icon>
  4635.         <textAlign>center</textAlign>
  4636.         <font>Chicago</font>
  4637.         <textSize>12</textSize>
  4638.         <textStyle>plain</textStyle>
  4639.         <name>Wipe Down</name>
  4640.         <script>on mouseUp
  4641. doEffect "wipe down",getIncrement()
  4642. -- (GetIncrement is a function in the card script that checks
  4643. --  the radio buttons related to the incrment parameters)
  4644.  
  4645. -- The doEffect handler can be found in the card script.
  4646.  
  4647. end mouseUp</script>
  4648.     </part>
  4649.     <part>
  4650.         <id>28</id>
  4651.         <type>button</type>
  4652.         <visible> <true /> </visible>
  4653.         <reserved5> 0 </reserved5>
  4654.         <reserved4> 0 </reserved4>
  4655.         <reserved3> 0 </reserved3>
  4656.         <reserved2> 0 </reserved2>
  4657.         <reserved1> 0 </reserved1>
  4658.         <enabled> <true /> </enabled>
  4659.         <rect>
  4660.             <left>112</left>
  4661.             <top>106</top>
  4662.             <right>197</right>
  4663.             <bottom>128</bottom>
  4664.         </rect>
  4665.         <style>roundrect</style>
  4666.         <showName> <true /> </showName>
  4667.         <highlight> <false /> </highlight>
  4668.         <autoHighlight> <true /> </autoHighlight>
  4669.         <sharedHighlight> <true /> </sharedHighlight>
  4670.         <family>0</family>
  4671.         <titleWidth>0</titleWidth>
  4672.         <icon>0</icon>
  4673.         <textAlign>center</textAlign>
  4674.         <font>Chicago</font>
  4675.         <textSize>12</textSize>
  4676.         <textStyle>plain</textStyle>
  4677.         <name>Scroll Left</name>
  4678.         <script>on mouseUp
  4679. doEffect "scroll left",getIncrement()
  4680. -- (GetIncrement is a function in the card script that checks
  4681. --  the radio buttons related to the incrment parameters)
  4682.  
  4683. -- The doEffect handler can be found in the card script.
  4684.  
  4685. end mouseUp</script>
  4686.     </part>
  4687.     <part>
  4688.         <id>48</id>
  4689.         <type>button</type>
  4690.         <visible> <true /> </visible>
  4691.         <reserved5> 0 </reserved5>
  4692.         <reserved4> 0 </reserved4>
  4693.         <reserved3> 0 </reserved3>
  4694.         <reserved2> 0 </reserved2>
  4695.         <reserved1> 0 </reserved1>
  4696.         <enabled> <true /> </enabled>
  4697.         <rect>
  4698.             <left>5</left>
  4699.             <top>223</top>
  4700.             <right>104</right>
  4701.             <bottom>277</bottom>
  4702.         </rect>
  4703.         <style>shadow</style>
  4704.         <showName> <false /> </showName>
  4705.         <highlight> <false /> </highlight>
  4706.         <autoHighlight> <false /> </autoHighlight>
  4707.         <sharedHighlight> <true /> </sharedHighlight>
  4708.         <family>0</family>
  4709.         <titleWidth>0</titleWidth>
  4710.         <icon>0</icon>
  4711.         <textAlign>center</textAlign>
  4712.         <font>Chicago</font>
  4713.         <textSize>12</textSize>
  4714.         <textStyle>plain</textStyle>
  4715.         <name>Blends</name>
  4716.         <script></script>
  4717.     </part>
  4718.     <part>
  4719.         <id>29</id>
  4720.         <type>button</type>
  4721.         <visible> <true /> </visible>
  4722.         <reserved5> 0 </reserved5>
  4723.         <reserved4> 0 </reserved4>
  4724.         <reserved3> 0 </reserved3>
  4725.         <reserved2> 0 </reserved2>
  4726.         <reserved1> 0 </reserved1>
  4727.         <enabled> <true /> </enabled>
  4728.         <rect>
  4729.             <left>203</left>
  4730.             <top>106</top>
  4731.             <right>288</right>
  4732.             <bottom>128</bottom>
  4733.         </rect>
  4734.         <style>roundrect</style>
  4735.         <showName> <true /> </showName>
  4736.         <highlight> <false /> </highlight>
  4737.         <autoHighlight> <true /> </autoHighlight>
  4738.         <sharedHighlight> <true /> </sharedHighlight>
  4739.         <family>0</family>
  4740.         <titleWidth>0</titleWidth>
  4741.         <icon>0</icon>
  4742.         <textAlign>center</textAlign>
  4743.         <font>Chicago</font>
  4744.         <textSize>12</textSize>
  4745.         <textStyle>plain</textStyle>
  4746.         <name>Scroll Right</name>
  4747.         <script>on mouseUp
  4748. doEffect "scroll right",getIncrement()
  4749. -- (GetIncrement is a function in the card script that checks
  4750. --  the radio buttons related to the incrment parameters)
  4751.  
  4752. -- The doEffect handler can be found in the card script.
  4753.  
  4754. end mouseUp</script>
  4755.     </part>
  4756.     <part>
  4757.         <id>31</id>
  4758.         <type>button</type>
  4759.         <visible> <true /> </visible>
  4760.         <reserved5> 0 </reserved5>
  4761.         <reserved4> 0 </reserved4>
  4762.         <reserved3> 0 </reserved3>
  4763.         <reserved2> 0 </reserved2>
  4764.         <reserved1> 0 </reserved1>
  4765.         <enabled> <true /> </enabled>
  4766.         <rect>
  4767.             <left>112</left>
  4768.             <top>132</top>
  4769.             <right>197</right>
  4770.             <bottom>154</bottom>
  4771.         </rect>
  4772.         <style>roundrect</style>
  4773.         <showName> <true /> </showName>
  4774.         <highlight> <false /> </highlight>
  4775.         <autoHighlight> <true /> </autoHighlight>
  4776.         <sharedHighlight> <true /> </sharedHighlight>
  4777.         <family>0</family>
  4778.         <titleWidth>0</titleWidth>
  4779.         <icon>0</icon>
  4780.         <textAlign>center</textAlign>
  4781.         <font>Chicago</font>
  4782.         <textSize>12</textSize>
  4783.         <textStyle>plain</textStyle>
  4784.         <name>Scroll Up</name>
  4785.         <script>on mouseUp
  4786. doEffect "scroll up",getIncrement()
  4787. -- (GetIncrement is a function in the card script that checks
  4788. --  the radio buttons related to the incrment parameters)
  4789.  
  4790. -- The doEffect handler can be found in the card script.
  4791.  
  4792. end mouseUp</script>
  4793.     </part>
  4794.     <part>
  4795.         <id>32</id>
  4796.         <type>button</type>
  4797.         <visible> <true /> </visible>
  4798.         <reserved5> 0 </reserved5>
  4799.         <reserved4> 0 </reserved4>
  4800.         <reserved3> 0 </reserved3>
  4801.         <reserved2> 0 </reserved2>
  4802.         <reserved1> 0 </reserved1>
  4803.         <enabled> <true /> </enabled>
  4804.         <rect>
  4805.             <left>203</left>
  4806.             <top>132</top>
  4807.             <right>288</right>
  4808.             <bottom>154</bottom>
  4809.         </rect>
  4810.         <style>roundrect</style>
  4811.         <showName> <true /> </showName>
  4812.         <highlight> <false /> </highlight>
  4813.         <autoHighlight> <true /> </autoHighlight>
  4814.         <sharedHighlight> <true /> </sharedHighlight>
  4815.         <family>0</family>
  4816.         <titleWidth>0</titleWidth>
  4817.         <icon>0</icon>
  4818.         <textAlign>center</textAlign>
  4819.         <font>Chicago</font>
  4820.         <textSize>12</textSize>
  4821.         <textStyle>plain</textStyle>
  4822.         <name>Scroll Down</name>
  4823.         <script>on mouseUp
  4824. doEffect "scroll down",getIncrement()
  4825. -- (GetIncrement is a function in the card script that checks
  4826. --  the radio buttons related to the incrment parameters)
  4827.  
  4828. -- The doEffect handler can be found in the card script.
  4829.  
  4830. end mouseUp</script>
  4831.     </part>
  4832.     <part>
  4833.         <id>33</id>
  4834.         <type>button</type>
  4835.         <visible> <true /> </visible>
  4836.         <reserved5> 0 </reserved5>
  4837.         <reserved4> 0 </reserved4>
  4838.         <reserved3> 0 </reserved3>
  4839.         <reserved2> 0 </reserved2>
  4840.         <reserved1> 0 </reserved1>
  4841.         <enabled> <true /> </enabled>
  4842.         <rect>
  4843.             <left>112</left>
  4844.             <top>158</top>
  4845.             <right>197</right>
  4846.             <bottom>180</bottom>
  4847.         </rect>
  4848.         <style>roundrect</style>
  4849.         <showName> <true /> </showName>
  4850.         <highlight> <false /> </highlight>
  4851.         <autoHighlight> <true /> </autoHighlight>
  4852.         <sharedHighlight> <true /> </sharedHighlight>
  4853.         <family>0</family>
  4854.         <titleWidth>0</titleWidth>
  4855.         <icon>0</icon>
  4856.         <textAlign>center</textAlign>
  4857.         <font>Chicago</font>
  4858.         <textSize>12</textSize>
  4859.         <textStyle>plain</textStyle>
  4860.         <name>Iris Open</name>
  4861.         <script>on mouseUp
  4862. doEffect "iris open",getIncrement()
  4863. -- (GetIncrement is a function in the card script that checks
  4864. --  the radio buttons related to the incrment parameters)
  4865.  
  4866. -- The doEffect handler can be found in the card script.
  4867.  
  4868. end mouseUp</script>
  4869.     </part>
  4870.     <part>
  4871.         <id>34</id>
  4872.         <type>button</type>
  4873.         <visible> <true /> </visible>
  4874.         <reserved5> 0 </reserved5>
  4875.         <reserved4> 0 </reserved4>
  4876.         <reserved3> 0 </reserved3>
  4877.         <reserved2> 0 </reserved2>
  4878.         <reserved1> 0 </reserved1>
  4879.         <enabled> <true /> </enabled>
  4880.         <rect>
  4881.             <left>203</left>
  4882.             <top>158</top>
  4883.             <right>288</right>
  4884.             <bottom>180</bottom>
  4885.         </rect>
  4886.         <style>roundrect</style>
  4887.         <showName> <true /> </showName>
  4888.         <highlight> <false /> </highlight>
  4889.         <autoHighlight> <true /> </autoHighlight>
  4890.         <sharedHighlight> <true /> </sharedHighlight>
  4891.         <family>0</family>
  4892.         <titleWidth>0</titleWidth>
  4893.         <icon>0</icon>
  4894.         <textAlign>center</textAlign>
  4895.         <font>Chicago</font>
  4896.         <textSize>12</textSize>
  4897.         <textStyle>plain</textStyle>
  4898.         <name>Iris Close</name>
  4899.         <script>on mouseUp
  4900. doEffect "iris close",getIncrement()
  4901. -- (GetIncrement is a function in the card script that checks
  4902. --  the radio buttons related to the incrment parameters)
  4903.  
  4904. -- The doEffect handler can be found in the card script.
  4905.  
  4906. end mouseUp</script>
  4907.     </part>
  4908.     <part>
  4909.         <id>35</id>
  4910.         <type>button</type>
  4911.         <visible> <true /> </visible>
  4912.         <reserved5> 0 </reserved5>
  4913.         <reserved4> 0 </reserved4>
  4914.         <reserved3> 0 </reserved3>
  4915.         <reserved2> 0 </reserved2>
  4916.         <reserved1> 0 </reserved1>
  4917.         <enabled> <true /> </enabled>
  4918.         <rect>
  4919.             <left>13</left>
  4920.             <top>251</top>
  4921.             <right>98</right>
  4922.             <bottom>273</bottom>
  4923.         </rect>
  4924.         <style>roundrect</style>
  4925.         <showName> <true /> </showName>
  4926.         <highlight> <false /> </highlight>
  4927.         <autoHighlight> <true /> </autoHighlight>
  4928.         <sharedHighlight> <true /> </sharedHighlight>
  4929.         <family>0</family>
  4930.         <titleWidth>0</titleWidth>
  4931.         <icon>0</icon>
  4932.         <textAlign>center</textAlign>
  4933.         <font>Chicago</font>
  4934.         <textSize>12</textSize>
  4935.         <textStyle>plain</textStyle>
  4936.         <name>Slow Blend</name>
  4937.         <script>on mouseUp
  4938. doEffect "slow blend",""
  4939. -- (The increment parameter has no meaning for blends.)
  4940.  
  4941. -- The doEffect handler can be found in the card script.
  4942. end mouseUp</script>
  4943.     </part>
  4944.     <part>
  4945.         <id>36</id>
  4946.         <type>button</type>
  4947.         <visible> <true /> </visible>
  4948.         <reserved5> 0 </reserved5>
  4949.         <reserved4> 0 </reserved4>
  4950.         <reserved3> 0 </reserved3>
  4951.         <reserved2> 0 </reserved2>
  4952.         <reserved1> 0 </reserved1>
  4953.         <enabled> <true /> </enabled>
  4954.         <rect>
  4955.             <left>13</left>
  4956.             <top>226</top>
  4957.             <right>98</right>
  4958.             <bottom>248</bottom>
  4959.         </rect>
  4960.         <style>roundrect</style>
  4961.         <showName> <true /> </showName>
  4962.         <highlight> <false /> </highlight>
  4963.         <autoHighlight> <true /> </autoHighlight>
  4964.         <sharedHighlight> <true /> </sharedHighlight>
  4965.         <family>0</family>
  4966.         <titleWidth>0</titleWidth>
  4967.         <icon>0</icon>
  4968.         <textAlign>center</textAlign>
  4969.         <font>Chicago</font>
  4970.         <textSize>12</textSize>
  4971.         <textStyle>plain</textStyle>
  4972.         <name>Blend</name>
  4973.         <script>on mouseUp
  4974. doEffect "blend",""
  4975. -- (The increment parameter has no meaning for blends.)
  4976.  
  4977. -- The doEffect handler can be found in the card script.
  4978. end mouseUp</script>
  4979.     </part>
  4980.     <part>
  4981.         <id>37</id>
  4982.         <type>button</type>
  4983.         <visible> <true /> </visible>
  4984.         <reserved5> 0 </reserved5>
  4985.         <reserved4> 0 </reserved4>
  4986.         <reserved3> 0 </reserved3>
  4987.         <reserved2> 0 </reserved2>
  4988.         <reserved1> 0 </reserved1>
  4989.         <enabled> <true /> </enabled>
  4990.         <rect>
  4991.             <left>201</left>
  4992.             <top>254</top>
  4993.             <right>270</right>
  4994.             <bottom>274</bottom>
  4995.         </rect>
  4996.         <style>radiobutton</style>
  4997.         <showName> <true /> </showName>
  4998.         <highlight> <true /> </highlight>
  4999.         <autoHighlight> <true /> </autoHighlight>
  5000.         <sharedHighlight> <true /> </sharedHighlight>
  5001.         <family>0</family>
  5002.         <titleWidth>0</titleWidth>
  5003.         <icon>0</icon>
  5004.         <textAlign>center</textAlign>
  5005.         <font>Chicago</font>
  5006.         <textSize>12</textSize>
  5007.         <textStyle>plain</textStyle>
  5008.         <name>Default</name>
  5009.         <script>on mouseUp
  5010. set the hilite of button "4" to false
  5011. set the hilite of button "8" to false
  5012. set the hilite of button "16" to false
  5013. set the hilite of button "32" to false
  5014. set the hilite of button "64" to false
  5015. end mouseUp</script>
  5016.     </part>
  5017.     <part>
  5018.         <id>38</id>
  5019.         <type>button</type>
  5020.         <visible> <true /> </visible>
  5021.         <reserved5> 0 </reserved5>
  5022.         <reserved4> 0 </reserved4>
  5023.         <reserved3> 0 </reserved3>
  5024.         <reserved2> 0 </reserved2>
  5025.         <reserved1> 0 </reserved1>
  5026.         <enabled> <true /> </enabled>
  5027.         <rect>
  5028.             <left>178</left>
  5029.             <top>236</top>
  5030.             <right>209</right>
  5031.             <bottom>256</bottom>
  5032.         </rect>
  5033.         <style>radiobutton</style>
  5034.         <showName> <true /> </showName>
  5035.         <highlight> <false /> </highlight>
  5036.         <autoHighlight> <true /> </autoHighlight>
  5037.         <sharedHighlight> <true /> </sharedHighlight>
  5038.         <family>0</family>
  5039.         <titleWidth>0</titleWidth>
  5040.         <icon>0</icon>
  5041.         <textAlign>center</textAlign>
  5042.         <font>Chicago</font>
  5043.         <textSize>12</textSize>
  5044.         <textStyle>plain</textStyle>
  5045.         <name>4</name>
  5046.         <script>on mouseUp
  5047. set the hilite of button "8" to false
  5048. set the hilite of button "16" to false
  5049. set the hilite of button "32" to false
  5050. set the hilite of button "64" to false
  5051. set the hilite of button "Default" to false
  5052. end mouseUp</script>
  5053.     </part>
  5054.     <part>
  5055.         <id>39</id>
  5056.         <type>button</type>
  5057.         <visible> <true /> </visible>
  5058.         <reserved5> 0 </reserved5>
  5059.         <reserved4> 0 </reserved4>
  5060.         <reserved3> 0 </reserved3>
  5061.         <reserved2> 0 </reserved2>
  5062.         <reserved1> 0 </reserved1>
  5063.         <enabled> <true /> </enabled>
  5064.         <rect>
  5065.             <left>214</left>
  5066.             <top>236</top>
  5067.             <right>245</right>
  5068.             <bottom>256</bottom>
  5069.         </rect>
  5070.         <style>radiobutton</style>
  5071.         <showName> <true /> </showName>
  5072.         <highlight> <false /> </highlight>
  5073.         <autoHighlight> <true /> </autoHighlight>
  5074.         <sharedHighlight> <true /> </sharedHighlight>
  5075.         <family>0</family>
  5076.         <titleWidth>0</titleWidth>
  5077.         <icon>0</icon>
  5078.         <textAlign>center</textAlign>
  5079.         <font>Chicago</font>
  5080.         <textSize>12</textSize>
  5081.         <textStyle>plain</textStyle>
  5082.         <name>8</name>
  5083.         <script>on mouseUp
  5084. set the hilite of button "4" to false
  5085. set the hilite of button "16" to false
  5086. set the hilite of button "32" to false
  5087. set the hilite of button "64" to false
  5088. set the hilite of button "Default" to false
  5089. end mouseUp</script>
  5090.     </part>
  5091.     <part>
  5092.         <id>40</id>
  5093.         <type>button</type>
  5094.         <visible> <true /> </visible>
  5095.         <reserved5> 0 </reserved5>
  5096.         <reserved4> 0 </reserved4>
  5097.         <reserved3> 0 </reserved3>
  5098.         <reserved2> 0 </reserved2>
  5099.         <reserved1> 0 </reserved1>
  5100.         <enabled> <true /> </enabled>
  5101.         <rect>
  5102.             <left>248</left>
  5103.             <top>236</top>
  5104.             <right>288</right>
  5105.             <bottom>256</bottom>
  5106.         </rect>
  5107.         <style>radiobutton</style>
  5108.         <showName> <true /> </showName>
  5109.         <highlight> <false /> </highlight>
  5110.         <autoHighlight> <true /> </autoHighlight>
  5111.         <sharedHighlight> <true /> </sharedHighlight>
  5112.         <family>0</family>
  5113.         <titleWidth>0</titleWidth>
  5114.         <icon>0</icon>
  5115.         <textAlign>center</textAlign>
  5116.         <font>Chicago</font>
  5117.         <textSize>12</textSize>
  5118.         <textStyle>plain</textStyle>
  5119.         <name>16</name>
  5120.         <script>on mouseUp
  5121. set the hilite of button "4" to false
  5122. set the hilite of button "8" to false
  5123. set the hilite of button "32" to false
  5124. set the hilite of button "64" to false
  5125. set the hilite of button "Default" to false
  5126. end mouseUp</script>
  5127.     </part>
  5128.     <part>
  5129.         <id>41</id>
  5130.         <type>button</type>
  5131.         <visible> <true /> </visible>
  5132.         <reserved5> 0 </reserved5>
  5133.         <reserved4> 0 </reserved4>
  5134.         <reserved3> 0 </reserved3>
  5135.         <reserved2> 0 </reserved2>
  5136.         <reserved1> 0 </reserved1>
  5137.         <enabled> <true /> </enabled>
  5138.         <rect>
  5139.             <left>118</left>
  5140.             <top>254</top>
  5141.             <right>158</right>
  5142.             <bottom>274</bottom>
  5143.         </rect>
  5144.         <style>radiobutton</style>
  5145.         <showName> <true /> </showName>
  5146.         <highlight> <false /> </highlight>
  5147.         <autoHighlight> <true /> </autoHighlight>
  5148.         <sharedHighlight> <true /> </sharedHighlight>
  5149.         <family>0</family>
  5150.         <titleWidth>0</titleWidth>
  5151.         <icon>0</icon>
  5152.         <textAlign>center</textAlign>
  5153.         <font>Chicago</font>
  5154.         <textSize>12</textSize>
  5155.         <textStyle>plain</textStyle>
  5156.         <name>32</name>
  5157.         <script>on mouseUp
  5158. set the hilite of button "4" to false
  5159. set the hilite of button "8" to false
  5160. set the hilite of button "16" to false
  5161. set the hilite of button "64" to false
  5162. set the hilite of button "Default" to false
  5163. end mouseUp</script>
  5164.     </part>
  5165.     <part>
  5166.         <id>42</id>
  5167.         <type>button</type>
  5168.         <visible> <true /> </visible>
  5169.         <reserved5> 0 </reserved5>
  5170.         <reserved4> 0 </reserved4>
  5171.         <reserved3> 0 </reserved3>
  5172.         <reserved2> 0 </reserved2>
  5173.         <reserved1> 0 </reserved1>
  5174.         <enabled> <true /> </enabled>
  5175.         <rect>
  5176.             <left>159</left>
  5177.             <top>254</top>
  5178.             <right>199</right>
  5179.             <bottom>274</bottom>
  5180.         </rect>
  5181.         <style>radiobutton</style>
  5182.         <showName> <true /> </showName>
  5183.         <highlight> <false /> </highlight>
  5184.         <autoHighlight> <true /> </autoHighlight>
  5185.         <sharedHighlight> <true /> </sharedHighlight>
  5186.         <family>0</family>
  5187.         <titleWidth>0</titleWidth>
  5188.         <icon>0</icon>
  5189.         <textAlign>center</textAlign>
  5190.         <font>Chicago</font>
  5191.         <textSize>12</textSize>
  5192.         <textStyle>plain</textStyle>
  5193.         <name>64</name>
  5194.         <script>on mouseUp
  5195. set the hilite of button "4" to false
  5196. set the hilite of button "8" to false
  5197. set the hilite of button "16" to false
  5198. set the hilite of button "32" to false
  5199. set the hilite of button "Default" to false
  5200. end mouseUp</script>
  5201.     </part>
  5202.     <part>
  5203.         <id>43</id>
  5204.         <type>button</type>
  5205.         <visible> <true /> </visible>
  5206.         <reserved5> 0 </reserved5>
  5207.         <reserved4> 0 </reserved4>
  5208.         <reserved3> 0 </reserved3>
  5209.         <reserved2> 0 </reserved2>
  5210.         <reserved1> 0 </reserved1>
  5211.         <enabled> <true /> </enabled>
  5212.         <rect>
  5213.             <left>17</left>
  5214.             <top>184</top>
  5215.             <right>90</right>
  5216.             <bottom>206</bottom>
  5217.         </rect>
  5218.         <style>checkbox</style>
  5219.         <showName> <true /> </showName>
  5220.         <highlight> <false /> </highlight>
  5221.         <autoHighlight> <true /> </autoHighlight>
  5222.         <sharedHighlight> <true /> </sharedHighlight>
  5223.         <family>0</family>
  5224.         <titleWidth>0</titleWidth>
  5225.         <icon>0</icon>
  5226.         <textAlign>center</textAlign>
  5227.         <font>Chicago</font>
  5228.         <textSize>12</textSize>
  5229.         <textStyle>plain</textStyle>
  5230.         <name>Smooth</name>
  5231.         <script></script>
  5232.     </part>
  5233.     <part>
  5234.         <id>45</id>
  5235.         <type>field</type>
  5236.         <visible> <true /> </visible>
  5237.         <dontWrap> <false /> </dontWrap>
  5238.         <dontSearch> <false /> </dontSearch>
  5239.         <sharedText> <false /> </sharedText>
  5240.         <fixedLineHeight> <false /> </fixedLineHeight>
  5241.         <autoTab> <false /> </autoTab>
  5242.         <lockText> <true /> </lockText>
  5243.         <rect>
  5244.             <left>114</left>
  5245.             <top>237</top>
  5246.             <right>179</right>
  5247.             <bottom>254</bottom>
  5248.         </rect>
  5249.         <style>transparent</style>
  5250.         <autoSelect> <false /> </autoSelect>
  5251.         <showLines> <false /> </showLines>
  5252.         <wideMargins> <false /> </wideMargins>
  5253.         <multipleLines> <false /> </multipleLines>
  5254.         <reservedFamily> 0 </reservedFamily>
  5255.         <titleWidth>0</titleWidth>
  5256.         <icon>0</icon>
  5257.         <textAlign>left</textAlign>
  5258.         <font>Geneva</font>
  5259.         <textSize>9</textSize>
  5260.         <textStyle>bold</textStyle>
  5261.         <textHeight>12</textHeight>
  5262.         <name></name>
  5263.         <script></script>
  5264.     </part>
  5265.     <part>
  5266.         <id>49</id>
  5267.         <type>button</type>
  5268.         <visible> <true /> </visible>
  5269.         <reserved5> 0 </reserved5>
  5270.         <reserved4> 0 </reserved4>
  5271.         <reserved3> 0 </reserved3>
  5272.         <reserved2> 0 </reserved2>
  5273.         <reserved1> 0 </reserved1>
  5274.         <enabled> <true /> </enabled>
  5275.         <rect>
  5276.             <left>202</left>
  5277.             <top>184</top>
  5278.             <right>291</right>
  5279.             <bottom>206</bottom>
  5280.         </rect>
  5281.         <style>roundrect</style>
  5282.         <showName> <true /> </showName>
  5283.         <highlight> <false /> </highlight>
  5284.         <autoHighlight> <true /> </autoHighlight>
  5285.         <sharedHighlight> <true /> </sharedHighlight>
  5286.         <family>0</family>
  5287.         <titleWidth>0</titleWidth>
  5288.         <icon>0</icon>
  5289.         <textAlign>center</textAlign>
  5290.         <font>Chicago</font>
  5291.         <textSize>12</textSize>
  5292.         <textStyle>plain</textStyle>
  5293.         <name>from Center</name>
  5294.         <script>on mouseUp
  5295. doEffect "stretch from center",getIncrement()
  5296. -- (GetIncrement is a function in the card script that checks
  5297. --  the radio buttons related to the incrment parameters)
  5298.  
  5299. -- The doEffect handler can be found in the card script.
  5300.  
  5301. end mouseUp</script>
  5302.     </part>
  5303.     <part>
  5304.         <id>50</id>
  5305.         <type>button</type>
  5306.         <visible> <true /> </visible>
  5307.         <reserved5> 0 </reserved5>
  5308.         <reserved4> 0 </reserved4>
  5309.         <reserved3> 0 </reserved3>
  5310.         <reserved2> 0 </reserved2>
  5311.         <reserved1> 0 </reserved1>
  5312.         <enabled> <true /> </enabled>
  5313.         <rect>
  5314.             <left>202</left>
  5315.             <top>209</top>
  5316.             <right>291</right>
  5317.             <bottom>231</bottom>
  5318.         </rect>
  5319.         <style>roundrect</style>
  5320.         <showName> <true /> </showName>
  5321.         <highlight> <false /> </highlight>
  5322.         <autoHighlight> <true /> </autoHighlight>
  5323.         <sharedHighlight> <true /> </sharedHighlight>
  5324.         <family>0</family>
  5325.         <titleWidth>0</titleWidth>
  5326.         <icon>0</icon>
  5327.         <textAlign>center</textAlign>
  5328.         <font>Chicago</font>
  5329.         <textSize>12</textSize>
  5330.         <textStyle>plain</textStyle>
  5331.         <name>from Bottom</name>
  5332.         <script>on mouseUp
  5333. doEffect "stretch from bottom",getIncrement()
  5334. -- (GetIncrement is a function in the card script that checks
  5335. --  the radio buttons related to the incrment parameters)
  5336.  
  5337. -- The doEffect handler can be found in the card script.
  5338.  
  5339. end mouseUp</script>
  5340.     </part>
  5341.     <part>
  5342.         <id>51</id>
  5343.         <type>button</type>
  5344.         <visible> <true /> </visible>
  5345.         <reserved5> 0 </reserved5>
  5346.         <reserved4> 0 </reserved4>
  5347.         <reserved3> 0 </reserved3>
  5348.         <reserved2> 0 </reserved2>
  5349.         <reserved1> 0 </reserved1>
  5350.         <enabled> <true /> </enabled>
  5351.         <rect>
  5352.             <left>112</left>
  5353.             <top>209</top>
  5354.             <right>199</right>
  5355.             <bottom>231</bottom>
  5356.         </rect>
  5357.         <style>roundrect</style>
  5358.         <showName> <true /> </showName>
  5359.         <highlight> <false /> </highlight>
  5360.         <autoHighlight> <true /> </autoHighlight>
  5361.         <sharedHighlight> <true /> </sharedHighlight>
  5362.         <family>0</family>
  5363.         <titleWidth>0</titleWidth>
  5364.         <icon>0</icon>
  5365.         <textAlign>center</textAlign>
  5366.         <font>Chicago</font>
  5367.         <textSize>12</textSize>
  5368.         <textStyle>plain</textStyle>
  5369.         <name>from Top</name>
  5370.         <script>on mouseUp
  5371. doEffect "stretch from top",getIncrement()
  5372. -- (GetIncrement is a function in the card script that checks
  5373. --  the radio buttons related to the incrment parameters)
  5374.  
  5375. -- The doEffect handler can be found in the card script.
  5376.  
  5377. end mouseUp</script>
  5378.     </part>
  5379.     <part>
  5380.         <id>52</id>
  5381.         <type>field</type>
  5382.         <visible> <true /> </visible>
  5383.         <dontWrap> <false /> </dontWrap>
  5384.         <dontSearch> <false /> </dontSearch>
  5385.         <sharedText> <false /> </sharedText>
  5386.         <fixedLineHeight> <false /> </fixedLineHeight>
  5387.         <autoTab> <false /> </autoTab>
  5388.         <lockText> <true /> </lockText>
  5389.         <rect>
  5390.             <left>113</left>
  5391.             <top>188</top>
  5392.             <right>191</right>
  5393.             <bottom>205</bottom>
  5394.         </rect>
  5395.         <style>transparent</style>
  5396.         <autoSelect> <false /> </autoSelect>
  5397.         <showLines> <false /> </showLines>
  5398.         <wideMargins> <false /> </wideMargins>
  5399.         <multipleLines> <false /> </multipleLines>
  5400.         <reservedFamily> 0 </reservedFamily>
  5401.         <titleWidth>0</titleWidth>
  5402.         <icon>0</icon>
  5403.         <textAlign>left</textAlign>
  5404.         <font>Chicago</font>
  5405.         <textSize>12</textSize>
  5406.         <textStyle>plain</textStyle>
  5407.         <textHeight>16</textHeight>
  5408.         <name></name>
  5409.         <script></script>
  5410.     </part>
  5411.     <content>
  5412.         <layer>background</layer>
  5413.         <id>11</id>
  5414.         <text>XCMD Reference</text>
  5415.     </content>
  5416.     <content>
  5417.         <layer>background</layer>
  5418.         <id>10</id>
  5419.         <text>Visual Effect Examples</text>
  5420.     </content>
  5421.     <content>
  5422.         <layer>card</layer>
  5423.         <id>2</id>
  5424.         <text>Show a transition to and from</text>
  5425.     </content>
  5426.     <content>
  5427.         <layer>card</layer>
  5428.         <id>10</id>
  5429.         <text>Delay Parameter</text>
  5430.     </content>
  5431.     <content>
  5432.         <layer>card</layer>
  5433.         <id>45</id>
  5434.         <text>Increment</text>
  5435.     </content>
  5436.     <content>
  5437.         <layer>card</layer>
  5438.         <id>52</id>
  5439.         <text>Stretch ΓǪ</text>
  5440.     </content>
  5441.     <name>Visual Effect Examples</name>
  5442.     <script>on doEffect effectName,increment
  5443. global htxyVisAllowed
  5444.  
  5445. -- This handler is used to demonstrate the various visual effects
  5446.  
  5447.  
  5448. -- Step 0:  check to make sure that HyperTint is installed, and
  5449. -- that visual effects are allowed.
  5450. if not HTUIsInstalled() then
  5451. answer "Cannot demonstrate visual effects because HyperTint is not installed."
  5452. exit doEffect
  5453. else if htxyVisAllowed is not true then
  5454. answer "Visual effects have been turned off because there was not enough memory to match the screen depth."
  5455. exit doEffect
  5456. end if
  5457.  
  5458. -- First step:  check the delay parameter to make sure it is valid.
  5459. get card field "DelayValue"
  5460. if it is not empty and it is not an integer then
  5461. answer "The delay parameter must either be an integer or empty.  "
  5462. select char 1 to 9999 of card field "DelayValue"
  5463. exit doEffect
  5464. else if it is not empty and it >= 30 then
  5465. set the numberFormat to "0.0"
  5466. answer "A delay parameter of" && it && "means that each step in the"┬¼
  5467. && "the effect will take" && it/60 && "seconds.  Do you still want"┬¼
  5468. && "to do this?"  with "Yes" or "No"
  5469. if it is "No" then
  5470. select char 1 to 9999 of card field "DelayValue"
  5471. exit doEffect
  5472. end if
  5473. end if
  5474.  
  5475. put card field "DelayValue" into delayPar
  5476.  
  5477. -- Figure out what type of transition the user wants.
  5478. put false into similar
  5479. put false into dissimilar
  5480. put false into toColor
  5481. if the hilite of button "a similar card" then
  5482. put true into similar
  5483. else if the hilite of button "a dissimilar card" then
  5484. put true into dissimilar
  5485. else if the hilite of button "white" then
  5486. put true into toColor
  5487. put "white" into effectColor
  5488. else if the hilite of button "black" then
  5489. put true into toColor
  5490. put "black" into effectColor
  5491. else if the hilite of button "gray" then
  5492. put true into toColor
  5493. put "gray" into effectColor
  5494. else if the hilite of button "blue" then
  5495. put true into toColor
  5496. put "0,0,65535" into effectColor
  5497. end if
  5498.  
  5499. -- Alright!  We're ready to go
  5500.  
  5501. if dissimilar then
  5502. HTVisual effectName,"card","",delayPar,increment
  5503. -- The rectangle parameter is specified as an empty string
  5504. -- since we want the effect to occur over the whole card.
  5505. -- The effect color is set to "card" which means use the
  5506. -- card image rather than a color.
  5507.  
  5508. -- Did the script make a mistake?
  5509. if the result is not empty then
  5510. answer the result
  5511. end if
  5512.  
  5513. if the optionKey is up then
  5514. go card "title card"
  5515. else
  5516. go card "Symplex Systems"
  5517. end if
  5518. wait 20 ticks
  5519.  
  5520. HTVisual effectName,"","",delayPar,increment
  5521. -- Notice that the color parameter can also be set to
  5522. -- an empty string to specify the "card" default
  5523.  
  5524. -- Did the script make a mistake?
  5525. if the result is not empty then
  5526. answer the result
  5527. end if
  5528.  
  5529. go back
  5530. else if similar then
  5531. -- For similar cards, we first jump to one of our description
  5532. -- cards.
  5533. push card -- So we can get back here
  5534. go card "HTChangePict XCMD"
  5535. wait 20 ticks
  5536. HTVisual effectName,"","",delayPar,increment
  5537.  
  5538. -- Did the script make a mistake?
  5539. if the result is not empty then
  5540. answer the result
  5541. end if
  5542. go card "HTAddPict XCMD"
  5543. wait 20 ticks
  5544. HTVisual effectName,"","",delayPar,increment
  5545. go back
  5546. wait 20 ticks -- Let the effect sink in
  5547. pop card
  5548. else -- Must be to a color
  5549. HTVisual effectName,effectColor,"",delayPar,increment
  5550. -- Did the script make a mistake?
  5551. if the result is not empty then
  5552. answer the result
  5553. end if
  5554.  
  5555. -- The next call to HTVisual has nothing to do with
  5556. -- demonstrating HyperTint.  I'm just using it as a
  5557. -- trick so that there will be a delay between the
  5558. -- transition to the color and the transition back to
  5559. -- the card.
  5560. HTVisual "dissolve1",effectColor,"",20
  5561.  
  5562. -- Alright now insert the transition from the color back to
  5563. -- the card.
  5564. HTVisual effectName,"","",delayPar,increment
  5565.  
  5566. -- Trigger the pending visual effects
  5567. go this card
  5568. end if
  5569.  
  5570. -- Get rid of mouseclicks by impatient users
  5571. wait while the mouseClick
  5572. end doEffect
  5573.  
  5574.  
  5575.  
  5576.  
  5577. function getIncrement
  5578. if the hilite of button "4" is true then
  5579. return 4
  5580. else if the hilite of button "8" is true then
  5581. return 8
  5582. else if the hilite of button "16" is true then
  5583. return 16
  5584. else if the hilite of button "32" is true then
  5585. return 32
  5586. else if the hilite of button "64" is true then
  5587. return 64
  5588. else
  5589. return empty
  5590. end if
  5591. end getIncrement
  5592.  
  5593. -- on opencard
  5594. -- HTcolorscheme "test visual effect examples"
  5595. -- HTLock off
  5596. -- end opencard
  5597.  
  5598. on OldCr
  5599. ClearAllRegions
  5600. HTRAddRect 1,the rect of button "TransitionType",shadow
  5601.  
  5602. HTRAddRect 1,the rect of button "DelayParameter",shadow
  5603. HTRAddRect 1,the rect of button "WipesAndScrolls",shadow
  5604. HTRAddRect 1,the rect of button "Blends",shadow
  5605. HTRAddRect 1,the rect of button "Dissolves",shadow
  5606. HTRAddRect 3,the rect of bg button "GoLeft",┬¼
  5607. the rect of bg button "GoRight"
  5608.  
  5609. HTWriteScheme the short name of this card
  5610. if the result is not empty then
  5611. answer "Error saving scheme:  " & the result
  5612. end if
  5613. go this card
  5614. end OldCr
  5615.  
  5616. on cr
  5617. ClearAllRegions
  5618. HTRAddRect 1,the rect of button "TransitionType",shadow
  5619.  
  5620. HTRAddRect 1,the rect of button "DelayParameter",shadow
  5621. HTRAddRect 1,the rect of button "WipesAndScrolls",shadow
  5622. HTRAddRect 1,the rect of button "Blends",shadow
  5623. HTRAddRect 1,the rect of button "Dissolves",shadow
  5624. HTRAddRect 3,the rect of bg button "GoLeft",┬¼
  5625. the rect of bg button "GoRight"
  5626.  
  5627. -- Add all visual effect buttons to there own color region
  5628. repeat with i = 1 to the number of buttons
  5629. if the style of button i is "RoundRect" then
  5630. HTRAddRRect 5,the rect of button i,"shadow"
  5631. end if
  5632. end repeat
  5633.  
  5634. HTWriteScheme the short name of this card
  5635. if the result is not empty then
  5636. answer "Error saving scheme:  " & the result
  5637. end if
  5638.  
  5639. go this card
  5640. end cr
  5641.  
  5642.  
  5643. on hiliteAll
  5644. repeat with i = 1 to the number of buttons
  5645. if the style of button i is "RoundRect" then
  5646. set the autoHilite of button i to true
  5647. end if
  5648. end repeat
  5649. end hiliteAll</script>
  5650. </card>
  5651.  
  5652.  
  5653. card_20591.xml
  5654. <?xml version="1.0" encoding="utf-8" ?>
  5655. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  5656. <card>
  5657.     <id>20591</id>
  5658.     <filler1>0</filler1>
  5659.     <cantDelete> <false /> </cantDelete>
  5660.     <showPict> <true /> </showPict>
  5661.     <dontSearch> <false /> </dontSearch>
  5662.     <owner>20104</owner>
  5663.     <link rel="stylesheet" type="text/css" href="stylesheet_3268.css" />
  5664.     <part>
  5665.         <id>8</id>
  5666.         <type>field</type>
  5667.         <visible> <true /> </visible>
  5668.         <dontWrap> <false /> </dontWrap>
  5669.         <dontSearch> <false /> </dontSearch>
  5670.         <sharedText> <false /> </sharedText>
  5671.         <fixedLineHeight> <false /> </fixedLineHeight>
  5672.         <autoTab> <false /> </autoTab>
  5673.         <lockText> <true /> </lockText>
  5674.         <rect>
  5675.             <left>118</left>
  5676.             <top>108</top>
  5677.             <right>320</right>
  5678.             <bottom>169</bottom>
  5679.         </rect>
  5680.         <style>shadow</style>
  5681.         <autoSelect> <false /> </autoSelect>
  5682.         <showLines> <false /> </showLines>
  5683.         <wideMargins> <false /> </wideMargins>
  5684.         <multipleLines> <false /> </multipleLines>
  5685.         <reservedFamily> 0 </reservedFamily>
  5686.         <titleWidth>0</titleWidth>
  5687.         <icon>0</icon>
  5688.         <textAlign>left</textAlign>
  5689.         <font>Geneva</font>
  5690.         <textSize>12</textSize>
  5691.         <textStyle>plain</textStyle>
  5692.         <textHeight>16</textHeight>
  5693.         <name>Description</name>
  5694.         <script></script>
  5695.     </part>
  5696.     <part>
  5697.         <id>3</id>
  5698.         <type>button</type>
  5699.         <visible> <true /> </visible>
  5700.         <reserved5> 0 </reserved5>
  5701.         <reserved4> 0 </reserved4>
  5702.         <reserved3> 0 </reserved3>
  5703.         <reserved2> 0 </reserved2>
  5704.         <reserved1> 0 </reserved1>
  5705.         <enabled> <true /> </enabled>
  5706.         <rect>
  5707.             <left>77</left>
  5708.             <top>61</top>
  5709.             <right>177</right>
  5710.             <bottom>83</bottom>
  5711.         </rect>
  5712.         <style>roundrect</style>
  5713.         <showName> <true /> </showName>
  5714.         <highlight> <false /> </highlight>
  5715.         <autoHighlight> <false /> </autoHighlight>
  5716.         <sharedHighlight> <true /> </sharedHighlight>
  5717.         <family>0</family>
  5718.         <titleWidth>0</titleWidth>
  5719.         <icon>0</icon>
  5720.         <textAlign>center</textAlign>
  5721.         <font>Chicago</font>
  5722.         <textSize>12</textSize>
  5723.         <textStyle>plain</textStyle>
  5724.         <name>Button Blend</name>
  5725.         <script>on mouseUp
  5726. global htxyVisAllowed
  5727.  
  5728. -- Step 0:  check to make sure that HyperTint is installed, and
  5729. -- that visual effects are allowed.  Otherwise, inform the user
  5730. -- that this demo will not show anything.
  5731. if not HTUIsInstalled() then
  5732. answer "Cannot demonstrate visual effects because HyperTint is not installed."
  5733. else if htxyVisAllowed is not true then
  5734. answer "Visual effects have been turned off because there was not enough memory to match the screen depth."
  5735. end if
  5736.  
  5737. -- Do the hiding and showing anyway to demonstrate coexistence
  5738. -- with black and white systems
  5739.  
  5740. -- hide me
  5741. HTRSubRRect 1,the rect of me, border
  5742. HTRSubRRect 2,the rect of me, shadowOnly
  5743. htvisual "slow blend","","",10
  5744. htvisual "anyUpdate"
  5745. hide me
  5746.  
  5747. -- show me
  5748. htvisual "slow blend","","",10
  5749. HTRAddRRect 1,the rect of me, border
  5750. HTRAddRRect 2,the rect of me, shadowOnly
  5751. htvisual "anyUpdate"
  5752. show me
  5753. end mouseUp
  5754.  
  5755. ------------------------------------------------------------------
  5756. ******************************************************************
  5757. -- The above mouseUp handler shows how the effect would
  5758. -- normally be created, but the commands that deal with
  5759. -- rounded rectangles -- HTRAddRREct and HTRSubRRect are
  5760. -- not included in the demo version.  The handlers below
  5761. -- are written to substitute for these commands.  Clearly
  5762. -- they are specific to the conditions on these cards.
  5763. ******************************************************************
  5764. ------------------------------------------------------------------
  5765.  
  5766. on HTRSubRRect regionNumber,rectangle1
  5767. -- For the way HTRSubRrect is used in this example,
  5768. -- HTRSubRect can be substituted for HTRSubRRect.  HTRSubRRect
  5769. -- is not included in the demo version.
  5770. -- For speed comparisions, using this special demo approach
  5771. -- takes about 5 ticks (on a Mac IIx, Hyp 2.1, System 7) to
  5772. -- handle both HTRSubRect calls.  Using the HTRSubRRect XCMD
  5773. -- took 6-7 ticks to do the same.
  5774. HTRSubRect regionNumber,rectangle1
  5775. end HTRSubRRect
  5776.  
  5777. on HTRAddRRect regionNumber
  5778. -- For this example card, we know that the two HTRAddRRect calls
  5779. -- simply revert the color layout back to what it was when the card
  5780. -- was opened.
  5781. --
  5782. -- We could check for the regionNumber being 2 and only
  5783. -- do it then -- no sense doing it twice -- but actually
  5784. -- doing it twice gives a more accurate time comparision.
  5785. -- Making the two calls directly to HTRAddRRect took
  5786. -- about 6-7 ticks:  this "dummmied out" way took about 5 ticks.
  5787. HTColorScheme the short name of this card,"ignorePict","delay"
  5788. end HTRAddRRect</script>
  5789.     </part>
  5790.     <part>
  5791.         <id>4</id>
  5792.         <type>button</type>
  5793.         <visible> <true /> </visible>
  5794.         <reserved5> 0 </reserved5>
  5795.         <reserved4> 0 </reserved4>
  5796.         <reserved3> 0 </reserved3>
  5797.         <reserved2> 0 </reserved2>
  5798.         <reserved1> 0 </reserved1>
  5799.         <enabled> <true /> </enabled>
  5800.         <rect>
  5801.             <left>227</left>
  5802.             <top>61</top>
  5803.             <right>338</right>
  5804.             <bottom>83</bottom>
  5805.         </rect>
  5806.         <style>roundrect</style>
  5807.         <showName> <true /> </showName>
  5808.         <highlight> <false /> </highlight>
  5809.         <autoHighlight> <false /> </autoHighlight>
  5810.         <sharedHighlight> <true /> </sharedHighlight>
  5811.         <family>0</family>
  5812.         <titleWidth>0</titleWidth>
  5813.         <icon>0</icon>
  5814.         <textAlign>center</textAlign>
  5815.         <font>Chicago</font>
  5816.         <textSize>12</textSize>
  5817.         <textStyle>plain</textStyle>
  5818.         <name>Expanding Field</name>
  5819.         <script>on mouseUp
  5820. -- There's no real point to this, but it does show that the
  5821. -- stretch commands can be restricted to a given rectangle,
  5822. -- which may come in handy.
  5823.  
  5824. global htxyVisAllowed
  5825.  
  5826. -- Step 0:  check to make sure that HyperTint is installed, and
  5827. -- that visual effects are allowed.  Otherwise, inform the user
  5828. -- that this demo will not show anything.
  5829. if not HTUIsInstalled() then
  5830. answer "Cannot demonstrate visual effects because HyperTint is not installed."
  5831. else if htxyVisAllowed is not true then
  5832. answer "Visual effects have been turned off because there was not enough memory to match the screen depth."
  5833. end if
  5834.  
  5835. -- Do the hiding and showing anyway to demonstrate coexistence
  5836. -- with black and white systems
  5837.  
  5838.  
  5839. -- Show the field with a visual effect
  5840. HTVisual "stretch from center","",the rect of card field "Stretch","",8
  5841. HTRAddRect 7,the rect of card field "Stretch",noScroll
  5842. HTVisual "anyUpdate"
  5843. show card field "Stretch"
  5844. wait 90 ticks
  5845.  
  5846.  
  5847. -- Hide the field with another visual effect
  5848. HTRSubRect 7,the rect of card field "Stretch", noScroll
  5849. HTVisual "dissolve2","","","","smooth"
  5850. HTVisual "anyUpdate"
  5851. hide card field "Stretch"
  5852.  
  5853. -- Get rid of any mouse clicks by impatient users
  5854. wait while the mouseClick
  5855.  
  5856. end mouseUp
  5857.  
  5858. </script>
  5859.     </part>
  5860.     <part>
  5861.         <id>5</id>
  5862.         <type>field</type>
  5863.         <visible> <false /> </visible>
  5864.         <dontWrap> <false /> </dontWrap>
  5865.         <dontSearch> <true /> </dontSearch>
  5866.         <sharedText> <false /> </sharedText>
  5867.         <fixedLineHeight> <false /> </fixedLineHeight>
  5868.         <autoTab> <false /> </autoTab>
  5869.         <lockText> <false /> </lockText>
  5870.         <rect>
  5871.             <left>50</left>
  5872.             <top>93</top>
  5873.             <right>390</right>
  5874.             <bottom>215</bottom>
  5875.         </rect>
  5876.         <style>scrolling</style>
  5877.         <autoSelect> <false /> </autoSelect>
  5878.         <showLines> <false /> </showLines>
  5879.         <wideMargins> <true /> </wideMargins>
  5880.         <multipleLines> <false /> </multipleLines>
  5881.         <reservedFamily> 0 </reservedFamily>
  5882.         <titleWidth>0</titleWidth>
  5883.         <icon>0</icon>
  5884.         <textAlign>left</textAlign>
  5885.         <font>Geneva</font>
  5886.         <textSize>12</textSize>
  5887.         <textStyle>plain</textStyle>
  5888.         <textHeight>16</textHeight>
  5889.         <name>Stretch</name>
  5890.         <script></script>
  5891.     </part>
  5892.     <content>
  5893.         <layer>card</layer>
  5894.         <id>5</id>
  5895.         <text>This is a scrolling field,
  5896. but you probably
  5897. already realized that.
  5898. I think the
  5899. gray whachamakallit
  5900. at the right is a dead giveaway,
  5901.  don't you?
  5902.  
  5903.  
  5904.  
  5905.  
  5906.  
  5907.  
  5908.  
  5909.  
  5910.  
  5911.  
  5912.  
  5913.  
  5914.  
  5915.  
  5916.  
  5917.  
  5918.  
  5919.  
  5920.  
  5921. I just put this here so the scroll bar would be visible.  You are very curious, eh?</text>
  5922.     </content>
  5923.     <content>
  5924.         <layer>background</layer>
  5925.         <id>10</id>
  5926.         <text>Button and Field Visual Effect Examples</text>
  5927.     </content>
  5928.     <content>
  5929.         <layer>card</layer>
  5930.         <id>8</id>
  5931.         <text>This card shows examples of restricting visual effects to a rectangle.</text>
  5932.     </content>
  5933.     <content>
  5934.         <layer>background</layer>
  5935.         <id>11</id>
  5936.         <text>XCMD Reference</text>
  5937.     </content>
  5938.     <name>Button and Field Visual E</name>
  5939.     <script>on colorSetup
  5940. end colorSetup
  5941.  
  5942.  
  5943. on cr
  5944. ClearAllRegions
  5945. HTRAddRect 3,the rect of bg button "GoLeft",┬¼
  5946. the rect of bg button "GoRight"
  5947.  
  5948. HTRAddRRect 1,the rect of button "Button Blend", border
  5949. if the result is not empty then answer the result
  5950. HTRAddRRect 2,the rect of button  "Button Blend", shadowOnly
  5951. if the result is not empty then answer the result
  5952.  
  5953. HTRAddRRect 1,the rect of button "Expanding Field", border
  5954. if the result is not empty then answer the result
  5955. HTRAddRRect 2,the rect of button  "Expanding Field", shadowOnly
  5956. if the result is not empty then answer the result
  5957.  
  5958. HTRAddRect 1,the rect of card field "Description", "shadowBorder", "field"
  5959. if the result is not empty then answer the result
  5960. HTRAddRect 2,the rect of card field "Description", "shadowOnly", "field"
  5961. if the result is not empty then answer the result
  5962.  
  5963. -- Have a look at the card:  shadowOnly is not really worth it
  5964.  
  5965. HTWriteScheme the short name of this card
  5966. if the result is not empty then
  5967. answer "Error saving the color scheme:  " & the result
  5968. end if
  5969. go this card
  5970. end cr</script>
  5971. </card>
  5972.  
  5973.  
  5974. card_9755.xml
  5975. <?xml version="1.0" encoding="utf-8" ?>
  5976. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  5977. <card>
  5978.     <id>9755</id>
  5979.     <filler1>0</filler1>
  5980.     <cantDelete> <false /> </cantDelete>
  5981.     <showPict> <true /> </showPict>
  5982.     <dontSearch> <false /> </dontSearch>
  5983.     <owner>3997</owner>
  5984.     <link rel="stylesheet" type="text/css" href="stylesheet_3268.css" />
  5985.     <content>
  5986.         <layer>background</layer>
  5987.         <id>4</id>
  5988.         <text>Additional Cards in Documentation Stack</text>
  5989.     </content>
  5990.     <content>
  5991.         <layer>background</layer>
  5992.         <id>6</id>
  5993.         <text><span class="style2">he full version of the HyperTint documentation stack cover the following additional topics in the ΓÇ£XCMD ReferenceΓÇ¥ section.
  5994.  
  5995. </span><span class="style9">HTRemove XCMD</span><span class="style2">
  5996.  
  5997. The command that is used to remove HyperTint from a stack window
  5998.  
  5999. </span><span class="style9">HTForeground XCMD</span><span class="style2">
  6000.  
  6001. The command to set the default foreground color
  6002.  
  6003. </span><span class="style9">HTBackground XCMD</span><span class="style2">
  6004.  
  6005. The command to set the default background color
  6006.  
  6007. </span><span class="style9">HTRForeground XCMD</span><span class="style2">
  6008.  
  6009. The command to set the foreground color for a color region
  6010.  
  6011. </span><span class="style9">HTRBackground XCMD</span><span class="style2">
  6012.  
  6013. The command to set the background color for a color region
  6014.  
  6015. </span><span class="style9">HTRAddRect XCMD</span><span class="style2">
  6016.  
  6017. The command to add rectangles to a color region
  6018.  
  6019. </span><span class="style9">HTRSubRect XCMD</span><span class="style2">
  6020.  
  6021. The command to remove rectangles from a color region
  6022.  
  6023. </span><span class="style9">HTRAddRRect XCMD</span><span class="style2">
  6024.  
  6025. The command to add rounded rectangles to a color region:  these rounded rectangles match HyperCard's rounded rectangle buttons.
  6026.  
  6027. </span><span class="style9">HTRSubRRect XCMD</span><span class="style2">
  6028.  
  6029. The command to remove rounded rectangles from a color region
  6030.  
  6031. </span><span class="style9">HTRClear XCMD</span><span class="style2">
  6032.  
  6033. The command to quickly remove all rectangles from a color region
  6034.  
  6035. </span><span class="style9">HTLock XCMD</span><span class="style2">
  6036.  
  6037. The command to lock and unlock HyperTint's screen updates.
  6038.  
  6039. </span><span class="style9">HTColorScheme XCMD</span><span class="style2">
  6040.  
  6041. The command to quickly change the entire color layout of a card
  6042.  
  6043. </span><span class="style9">HTWriteScheme XCMD</span><span class="style2">
  6044.  
  6045. The command to save a color scheme during the authoring process
  6046.  
  6047. </span><span class="style9">HTUPickColor XCMD</span><span class="style2">
  6048.  
  6049. A command to allow the user to choose colors.  This usually will be used during the authoring process to choose colors for a color scheme.
  6050.  
  6051. </span><span class="style9">HTUIsInstalled XFCN</span><span class="style2">
  6052.  
  6053. A function that checks whether HyperTint is installed in the current stack window.
  6054.  
  6055. </span><span class="style9">HTUColorQD XFCN</span><span class="style2">
  6056.  
  6057. A function that checks whether Color QuickDraw is supported by the machine running the stack
  6058.  
  6059. </span><span class="style9">HTUMaxDepth XFCN</span><span class="style2">
  6060.  
  6061. A function that determines the current screen bit depth which indicates the number of available colors.
  6062.  
  6063. </span><span class="style9">HTCurrFC XFCN
  6064. HTCurrBC XFCN
  6065. HTRCurrFC XFCN
  6066. HTRCurrBC XFCN
  6067. </span><span class="style2">
  6068. A set of utility functions that return the current default foreground or background color or the current foreground and background color for any of the color regions.</span></text>
  6069.     </content>
  6070.     <content>
  6071.         <layer>background</layer>
  6072.         <id>10</id>
  6073.         <text>XCMD Reference</text>
  6074.     </content>
  6075.     <name>Additional Cards in Docum</name>
  6076.     <script></script>
  6077. </card>
  6078.  
  6079.  
  6080. card_8686.xml
  6081. <?xml version="1.0" encoding="utf-8" ?>
  6082. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  6083. <card>
  6084.     <id>8686</id>
  6085.     <filler1>0</filler1>
  6086.     <cantDelete> <false /> </cantDelete>
  6087.     <showPict> <true /> </showPict>
  6088.     <dontSearch> <false /> </dontSearch>
  6089.     <owner>4603</owner>
  6090.     <link rel="stylesheet" type="text/css" href="stylesheet_3268.css" />
  6091.     <content>
  6092.         <layer>background</layer>
  6093.         <id>11</id>
  6094.         <text>Notes and Tips</text>
  6095.     </content>
  6096.     <content>
  6097.         <layer>background</layer>
  6098.         <id>10</id>
  6099.         <text><span class="style1"><a href="#" class="group">Moving Things Around</a></span><span class="style2">
  6100. </span><span class="style1"><a href="#" class="group">Assigning Colors Interactively</a></span><span class="style2">
  6101. </span><span class="style1"><a href="#" class="group">What Stays Black and White?</a></span><span class="style2">
  6102. </span><span class="style1"><a href="#" class="group">Reducing Memory Requirements</a></span><span class="style2">
  6103. </span><span class="style1"><a href="#" class="group">Compatibility with Future HyperCard Versions</a></span><span class="style2">
  6104. </span><span class="style1"><a href="#" class="group">Additional Cards in Documentation Stack</a></span><span class="style2">
  6105. </span></text>
  6106.     </content>
  6107.     <content>
  6108.         <layer>background</layer>
  6109.         <id>12</id>
  6110.         <text>Notes and Tips</text>
  6111.     </content>
  6112.     <name>Notes and Tips</name>
  6113.     <script></script>
  6114. </card>
  6115.  
  6116.  
  6117. card_5160.xml
  6118. <?xml version="1.0" encoding="utf-8" ?>
  6119. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  6120. <card>
  6121.     <id>5160</id>
  6122.     <filler1>0</filler1>
  6123.     <cantDelete> <false /> </cantDelete>
  6124.     <showPict> <true /> </showPict>
  6125.     <dontSearch> <false /> </dontSearch>
  6126.     <owner>3997</owner>
  6127.     <link rel="stylesheet" type="text/css" href="stylesheet_3268.css" />
  6128.     <content>
  6129.         <layer>background</layer>
  6130.         <id>4</id>
  6131.         <text>Moving Things Around</text>
  6132.     </content>
  6133.     <content>
  6134.         <layer>background</layer>
  6135.         <id>6</id>
  6136.         <text><span class="style2">he biggest limitation of HyperTint is that it cannot detect when a button or a field is moved.  Scripting commands must be made to update the areas assigned to each color region.  This can a nuisance during stack authoring, but there is an approach that reduces the nuisance factor down to its absolute minimum.  Using this technique, updating the color scheme to match the new card layout can be as fast as typing a two letter command into the message box. 
  6137.  
  6138. This discussion assumes that all the cards in the same background share same the color layout changes, and that layout changes from background to background.  (The same ideas apply to stacks where every card, or just some cards, have their individual color layouts, except that </span><span class="style7">openCard</span><span class="style2"> handlers may be used to override the default actions for that background.)
  6139.  
  6140. This discussion will also assume that each </span><span class="style7">openBackground</span><span class="style2"> handler is using </span><span class="style12">HTColorScheme</span><span class="style2"> to initialize the color layout.  Using color schemes makes interactive changes much easier.  Because the color layout is being changed on a background by background basis, we might as well store each scheme under the name of this background.  Each </span><span class="style7">openBackground</span><span class="style2"> handler would include the line
  6141. </span><span class="style10">       HTColorScheme the short name of this background</span><span class="style2">
  6142.  
  6143. This would read the color scheme from a resource whose name matches the background name. 
  6144.  
  6145. The basic technique to adapt to moving objects is to use a script handler whose sole job is to initialize the various color regions that are used.  Give the handler a nice short name, perhaps </span><span class="style7">cr</span><span class="style2"> (for ΓÇ£color regionsΓÇ¥).  This makes it quick to type the handler name into the message box.  The handler's sole job is to assign the areas of the screen for each color region.  For instance, a cr handler for this background might look this
  6146.  
  6147. </span><span class="style10">  on cr
  6148.     -- Assign the color regions for this background.  This
  6149.     -- background uses three color regions.
  6150.     --
  6151.     -- The first step is to clear out the three regions used.
  6152.     -- Otherwise, the old object locations will be kept in the
  6153.     -- region along with the new locations.
  6154.     HTRClear 1
  6155.     HTRClear 2
  6156.     HTRClear 3
  6157.     -- Now, add the new locations to the empty regions
  6158.     HTRAddRect 1,the rect of field "Doc", "noScroll"
  6159.     HTRAddRect 2,the rect of field "Title"
  6160.     HTRAddRect 3, the rect of bg button "GoLeft",┬¼
  6161.     the rect of bg button "GoRight"
  6162.     -- The above commands have changed the current color layout
  6163.     -- but to make these changes permanent, they are saved
  6164.     -- in the color scheme for this background, so that the
  6165.     -- time this background is "opened", the new layout will
  6166.     -- be found.
  6167.     HTWriteScheme the short name of this background
  6168.     if the result is not empty then
  6169.       answer "Error saving new color scheme:  " & the result
  6170.     end if
  6171.   end cr
  6172. </span><span class="style2">
  6173. Now, after moving a field or button around, typing cr into the message box will quickly update the color scheme and make sure that the changes will automatically be saved.
  6174.  
  6175. The only time you need to edit the script is when you want to change which buttons or field belong to which region.
  6176.  
  6177. </span><span class="style12">Demo note:  all the </span><span class="style29">cr</span><span class="style12"> message handlers have been left in the scripts of this demo version ΓÇö so that they can examined ΓÇö but most will not work with the demo version of HyperTint.  First, the </span><span class="style29">cr</span><span class="style12"> handlers use the HTWriteScheme XCMD to save the new color layout: HTWriteScheme is not included in this demo.  Second, for the XCMDs that are included with the demo, the </span><span class="style29">cr</span><span class="style12"> handlers may try to use options that are not supported:  options that are not required for run-time support of the HyperTint demo have been stripped out of the XCMDs.
  6178. </span><span class="style2">
  6179. Notice that the handler doesn't make any attempt to set the foreground and background colors for each region.  When using color schemes, HyperTint provides a interactive way to change the color assigned to different regions, as described in the next card.</span></text>
  6180.     </content>
  6181.     <content>
  6182.         <layer>background</layer>
  6183.         <id>8</id>
  6184.         <text>
  6185. </text>
  6186.     </content>
  6187.     <content>
  6188.         <layer>background</layer>
  6189.         <id>9</id>
  6190.         <text>
  6191. </text>
  6192.     </content>
  6193.     <content>
  6194.         <layer>background</layer>
  6195.         <id>10</id>
  6196.         <text>Notes and Tips</text>
  6197.     </content>
  6198.     <name>Moving Things Around</name>
  6199.     <script></script>
  6200. </card>
  6201.  
  6202.  
  6203. card_15926.xml
  6204. <?xml version="1.0" encoding="utf-8" ?>
  6205. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  6206. <card>
  6207.     <id>15926</id>
  6208.     <filler1>0</filler1>
  6209.     <cantDelete> <false /> </cantDelete>
  6210.     <showPict> <true /> </showPict>
  6211.     <dontSearch> <false /> </dontSearch>
  6212.     <owner>3997</owner>
  6213.     <link rel="stylesheet" type="text/css" href="stylesheet_3268.css" />
  6214.     <content>
  6215.         <layer>background</layer>
  6216.         <id>4</id>
  6217.         <text>Assigning Colors Interactively</text>
  6218.     </content>
  6219.     <content>
  6220.         <layer>background</layer>
  6221.         <id>6</id>
  6222.         <text><span class="style2">ndless hours can be spent on selecting "just the right colors"  for a layout.  Changing the color for a region is quite annoying when you have to open the script editor, figure out (perhaps by </span><span class="style12">HTUPickColor</span><span class="style2">) the red, green, and blue components for the desired color, and change the parameters in the </span><span class="style12">HTRForeground</span><span class="style2"> or </span><span class="style12">HTRBackground</span><span class="style2"> commands.
  6223.  
  6224. To ease this task, a button panel palette has been provided that allows quickly selecting new colors for each of the color region, as well as the default foreground and background colors. 
  6225.  
  6226. This stack has a handler that will display the palette.  The handler can be invoked by typing ΓÇ£ccΓÇ¥ into the message box. 
  6227.  
  6228. There is a button on the palette for each color region.  Clicking on a button is used to change the background color.  Shift-clicking is used to change the foreground color.  For both cases, the ΓÇ£choose colorΓÇ¥ dialog box is displayed.  Option-clicking on a region number presents the option of making the region's background transparent or set to the default background color.
  6229.  
  6230. The default colors can also be set:  click on the ΓÇ£DefaultΓÇ£ button to set the default background color; shift-click to set the default foreground color.  Option-Clicking has no meaning for the default button.
  6231.  
  6232. The ΓÇ£Save under Bkgnd NameΓÇ¥ and "Save as ..." are used to support color schemes.  Clicking ΓÇ£Save under Bkgnd NameΓÇ¥ will save the current colors, along with all other characteristics of the color layout (backdrop picture, areas of the card assigned to each region) under a color scheme resource whose matches the short name of the current background.  This is useful for stacks where the color scheme changes on a background by background basis.  For other color scheme strategies ΓÇö or to make a temporary copy of a color scheme ΓÇö the ΓÇ£Save as ...ΓÇ¥ button can be used to save a color scheme under any name.  </span><span class="style12">Demo note:  saving a color scheme requires the HTWriteScheme XCMD which is not included in this demo.</span><span class="style2">
  6233.  
  6234. The button panel uses scripts that are contained in this stack.  In order to use the panel in other stacks, this stack must first be inserted into message hierarchy.  This can be done by using the command </span><span class="style7">start using stack "HyperTint"</span><span class="style2">.  This command can be typed into the message box each time or this command could be included, during a stack's authoring stage, in the stack's </span><span class="style7">openStack</span><span class="style2"> handler.  </span><span class="style12">Demo note:  the version of HyperTint included in this demo will not work in other stacks.</span><span class="style2">
  6235.  
  6236.  
  6237.  </span></text>
  6238.     </content>
  6239.     <content>
  6240.         <layer>background</layer>
  6241.         <id>8</id>
  6242.         <text>
  6243. </text>
  6244.     </content>
  6245.     <content>
  6246.         <layer>background</layer>
  6247.         <id>9</id>
  6248.         <text>
  6249. </text>
  6250.     </content>
  6251.     <content>
  6252.         <layer>background</layer>
  6253.         <id>10</id>
  6254.         <text>Notes and Tips</text>
  6255.     </content>
  6256.     <name>Assigning Colors Interact</name>
  6257.     <script>on openCard
  6258. global htxxCCWasThere
  6259. send openCard to this background
  6260.  
  6261. put (there is a window "HT Color Panel") into htxxCCWasThere
  6262. cc -- call our handler to open the button color panel
  6263. -- pass opencard
  6264. end openCard
  6265.  
  6266. on closeCard
  6267. global htxxCCWasThere
  6268.  
  6269. -- If the button color panel wasn't there when we opened
  6270. -- this card, get rid of it again.  (Be careful:  the user
  6271. -- may have already closed the window.)
  6272. if not htxxCCWasThere and there is a window "HT Color Panel" then
  6273. close window "HT Color Panel"
  6274. end if
  6275. pass closeCard
  6276. end closeCard
  6277. </script>
  6278. </card>
  6279.  
  6280.  
  6281. card_26670.xml
  6282. <?xml version="1.0" encoding="utf-8" ?>
  6283. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  6284. <card>
  6285.     <id>26670</id>
  6286.     <filler1>0</filler1>
  6287.     <cantDelete> <false /> </cantDelete>
  6288.     <showPict> <true /> </showPict>
  6289.     <dontSearch> <false /> </dontSearch>
  6290.     <owner>3997</owner>
  6291.     <link rel="stylesheet" type="text/css" href="stylesheet_3268.css" />
  6292.     <content>
  6293.         <layer>background</layer>
  6294.         <id>4</id>
  6295.         <text>What Stays Black and White?</text>
  6296.     </content>
  6297.     <content>
  6298.         <layer>background</layer>
  6299.         <id>6</id>
  6300.         <text><span class="style2">here are still some remnants of the black and white world when using HyperTint.
  6301.  
  6302. ΓÇó  The dialog box that is displayed by the ΓÇ£Go RecentΓÇ¥ menu displays black and white thumbnail card images.
  6303.  
  6304. ΓÇó  All printing is still black and white.
  6305.  
  6306. ΓÇó  The ΓÇ£Export PaintΓǪΓÇ¥ menu item exports HyperCard's black and white image.
  6307.  
  6308. ΓÇó  Card images that are copied to the clipboard are black and white.
  6309.  
  6310. ΓÇó The command </span><span class="style7">show cards</span><span class="style2">  will display in color, but because system messages are not sent while the </span><span class="style7">show cards</span><span class="style2"> command is running, the colors will be ΓÇ£all messed upΓÇ¥ when HyperCard flips to a card that is supposed to have a different color layout.  To flip through cards with differing color layouts, one of the </span><span class="style22"><a href="#" class="group">following commands</a></span><span class="style2"> could be substituted for the show cards command, although the card flipping speed will be slower.
  6311. </span><span class="style10">
  6312.   on ShowCards
  6313.     repeat
  6314.        if the mouseClick then exit repeat
  6315.        go next card
  6316.     end repeat
  6317.   end ShowCards
  6318.  
  6319.   on ShowAllCards
  6320.     repeat for the number of cards
  6321.        if the mouseClick then exit repeat
  6322.        go next card
  6323.     end repeat
  6324.   end ShowAllCards
  6325.  
  6326. </span><span class="style2">If all cards being shown share the same color layout, then it is okay to directly use the </span><span class="style26"><a href="#" class="group">show cards</a></span><span class="style2"> command.</span></text>
  6327.     </content>
  6328.     <content>
  6329.         <layer>background</layer>
  6330.         <id>10</id>
  6331.         <text>Notes and Tips</text>
  6332.     </content>
  6333.     <content>
  6334.         <layer>background</layer>
  6335.         <id>8</id>
  6336.         <text>
  6337. show cards
  6338. following commands
  6339. </text>
  6340.     </content>
  6341.     <content>
  6342.         <layer>background</layer>
  6343.         <id>9</id>
  6344.         <text>
  6345. S demoFastShow
  6346. S demoSlowShow
  6347. </text>
  6348.     </content>
  6349.     <name>What Stays Black and Whit</name>
  6350.     <script>on demoFastShow
  6351. -- This handler is used to demonstrate card flipping when it
  6352. -- is known that the color layouts stay the same.
  6353.  
  6354. -- Remember where we were
  6355. put the scroll of field "Doc" into saveScroll
  6356. push card
  6357.  
  6358.  
  6359. go card "HyperTint Features"
  6360. -- The next 8 cards all share  the same color layout
  6361. show 8 cards
  6362.  
  6363. pop card
  6364. end demoFastShow
  6365.  
  6366. on demoSlowShow
  6367. -- This handler is used to demonstrate card flipping when it
  6368. -- is known that the color layouts stay the same.
  6369.  
  6370. -- Remember where we were
  6371. put the scroll of field "Doc" into saveScroll
  6372. push card
  6373.  
  6374. -- The stack of this section would show a few section
  6375. -- header cards followed by a some of the cards in this
  6376. -- background
  6377.  
  6378. go card "Notes and Tips"
  6379. repeat 8 times -- (8 should be enough cards to show the idea.)
  6380. if the mouseClick then exit repeat
  6381. go next card
  6382. end repeat
  6383.  
  6384. pop card
  6385. end demoSlowShow</script>
  6386. </card>
  6387.  
  6388.  
  6389. card_25328.xml
  6390. <?xml version="1.0" encoding="utf-8" ?>
  6391. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  6392. <card>
  6393.     <id>25328</id>
  6394.     <filler1>0</filler1>
  6395.     <cantDelete> <false /> </cantDelete>
  6396.     <showPict> <true /> </showPict>
  6397.     <dontSearch> <false /> </dontSearch>
  6398.     <owner>3997</owner>
  6399.     <link rel="stylesheet" type="text/css" href="stylesheet_3268.css" />
  6400.     <content>
  6401.         <layer>background</layer>
  6402.         <id>4</id>
  6403.         <text>Reducing Memory Requirements</text>
  6404.     </content>
  6405.     <content>
  6406.         <layer>background</layer>
  6407.         <id>6</id>
  6408.         <text><span class="style2">he memory requirements of HyperTint can be reduced by several methods
  6409.  
  6410.      ΓÇó use a smaller card size
  6411.  
  6412.      ΓÇó leave out the color backdrop picture
  6413.  
  6414.      ΓÇó install HyperTint at a shallower pixel depth
  6415.  
  6416.      ΓÇó ask the user to change the monitor setting to a
  6417.         shallower pixel depth
  6418.  
  6419. The standard memory requirement for HyperTint is
  6420.  
  6421.      (((pixel depth of deepest screen) * 2 + 1)
  6422.            * cardHeight * cardWidth) /8 
  6423.  
  6424. This stack is 448 pixels wide and 280 pixels tall.  The memory required for buffers to display this stack on a 256-color (8 bit) monitor would be
  6425.  
  6426.          (((8) * 2 +1) * 280 * 448) / 8 
  6427.  
  6428. which is about 270 kilobytes.  This does not include the memory that is needed to read in picture resources and the memory temporarily used by QuickDraw when drawing a new picture.  The size of the picture resource might vary from about ten up to hundreds of kilobytes, depending on how much compression QuickDraw was able to perform on the images.  When drawing a bitmapped picture (that is, a scanned image or a picture produced by a "paint" program), QuickDraw allocates an additional offscreen image buffer to hold the bitmap.  The good news is that the HyperCard 2.x programming team seems to have done a good job with memory management issues:  HyperCard is quite gracious in handling the temporary requests for oodles of memory when changing pictures.
  6429.  
  6430. To reduce memory requirements, various actions can be taken.  One is to use smaller card sizes.  The memory needed for offscreen buffers decreases proportionally to the number of pixels displayed on a card.  The obvious disadvantage is that less information can be displayed on each card.
  6431.  
  6432. Another memory reduction technique is to use the colorization features without a backdrop picture.  In this case, the memory required for offscreen buffers decreases to approximately
  6433.  
  6434.            (((pixel depth of deepest screen) + 1) * cardHeight * cardWidth) /8 
  6435.  
  6436.  For a stack that's 448 pixels wide and 280 pixels tall, this would reduce the memory requirements for the offscreen buffers to about 140K.  (This assumes the deepest screen supports 256 colors: a pixel depth of 8.)  To install HyperTint without a backdrop picture, use the keyword </span><span class="style12">none</span><span class="style2"> as the picture specifier when calling the </span><span class="style1"><a href="#" class="group">HyperTint</a></span><span class="style2"> command.
  6437.  
  6438. It is possible to create the offscreen buffers with a shallower depth than the screen.  For instance, specifying a pixel depth of 4 would limit the choice of colors to 16 but would reduce the memory requirements for a 448x280 screen to about 140K for a stack with a backdrop picture and about 80K for a stack without a backdrop.  (Actually, when considering these lower memory requirements, you should also add in a fixed overhead of about 40K that is unrelated to card size or screen/buffer depth.  The depth of the offscreen buffers can be controlled by specifying the optional keywords </span><span class="style12">maxDepth1</span><span class="style2">, </span><span class="style12">maxDepth2</span><span class="style2">, </span><span class="style12">maxDepth4</span><span class="style2">, </span><span class="style12">maxDepth8</span><span class="style2">, </span><span class="style12">maxDepth16</span><span class="style2">, or </span><span class="style12">maxDepth32</span><span class="style2">, when calling the </span><span class="style22"><a href="#" class="group">HyperTint</a></span><span class="style2"> command. 
  6439.  
  6440. Reducing the pixel depth of the offscreen buffers causes a dramatic speed penalty.  For many uses, this would make this option too slow to be usable.  In particular, visual effects slow down greatly, because the effects take the performance hit several times each time the effect is done.  For those stacks where the performance penalty may be acceptable for everything but the visual effects, </span><span class="style1"><a href="#" class="group">HTVisual</a></span><span class="style2"> allows a "master switch" ΓÇö using the keywords </span><span class="style12">allow</span><span class="style2"> and </span><span class="style12">disallow</span><span class="style2"> ΓÇö that turns on and off all visual effects.  This makes it easier to create a stack that would only use a restricted pixel depth if there was not enough memory for the faster version with a pixel depth matching the screen:  all visual effects could be turned off when opening the stack under low memory conditions, without having to put checks before every call to </span><span class="style1"><a href="#" class="group">HTVisual</a></span><span class="style2">.
  6441.  
  6442. Given the enormous memory requirements for 32-bit color screens, it may be best to always specify a maximum pixel depth of 8 bits when invoking HyperTint.  The speed penalty when drawing from an 8-bit offscreen buffer to a 32-bit screen seems to be less than the speed penalty of drawing from a 4-bit buffer to an 8-bit screen.
  6443.  
  6444. For 32-bit color screens, this stack will attempt to install HyperTint at a depth of 32 bits, but if there is not enough memory, this stack will install HyperTint at an 8 bit depth and turn off visual effects.  This is described further on the card ΓÇ£This Stack:  Installing HyperTint.ΓÇ¥
  6445.  
  6446. The best way to handle lower memory conditions, assuming your colorized images will still look acceptable at the lower pixel depth, is to ask the user to use the Monitors panel to select a shallower pixel depth before opening your stack.  That way,  there would be no speed penalty.  (Indeed, the shallower pixel depth should make HyperTint faster.)
  6447.  
  6448.  
  6449. </span></text>
  6450.     </content>
  6451.     <content>
  6452.         <layer>background</layer>
  6453.         <id>10</id>
  6454.         <text>Notes and Tips</text>
  6455.     </content>
  6456.     <content>
  6457.         <layer>background</layer>
  6458.         <id>8</id>
  6459.         <text>
  6460. HyperTint
  6461. HTVisual
  6462. </text>
  6463.     </content>
  6464.     <content>
  6465.         <layer>background</layer>
  6466.         <id>9</id>
  6467.         <text>
  6468. 3747
  6469. 14255
  6470. </text>
  6471.     </content>
  6472.     <name>Reducing Memory Requireme</name>
  6473.     <script></script>
  6474. </card>
  6475.  
  6476.  
  6477. card_17922.xml
  6478. <?xml version="1.0" encoding="utf-8" ?>
  6479. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  6480. <card>
  6481.     <id>17922</id>
  6482.     <filler1>0</filler1>
  6483.     <cantDelete> <false /> </cantDelete>
  6484.     <showPict> <true /> </showPict>
  6485.     <dontSearch> <false /> </dontSearch>
  6486.     <owner>3997</owner>
  6487.     <link rel="stylesheet" type="text/css" href="stylesheet_3268.css" />
  6488.     <content>
  6489.         <layer>background</layer>
  6490.         <id>4</id>
  6491.         <text>Compatibility with Future HyperCard Versions</text>
  6492.     </content>
  6493.     <content>
  6494.         <layer>background</layer>
  6495.         <id>6</id>
  6496.         <text>I think most people would agree that a future version of HyperCard likely will increase its built-in support of color.  The impact of this on stacks using HyperTint is difficult to predict.  
  6497.  
  6498. HyperCard 2.0/2.1 makes use of an offscreen buffer that keeps a copy of the card image.  That is why scrolling with the scroll windoid provides such fast response.  If future versions continue to use this offscreen buffer ΓÇö but change the buffers from black-and-white to color ΓÇö HyperTint has a good chance of continuing to work.  HyperTint has been tried in a color environment, but testing so far has been minimal so problems may still remain. 
  6499.  
  6500. Still, it is not clear that future versions will continue to use an offscreen buffer.  The technique provides a fast way of updating the card window display, but for color support, the amount of memory required may be too great.  The amount of memory required for the offscreen buffer gets especially large if support is included for 24-bit color paint.  It is difficult to predict the decisions of Claris' programming team, so a compatibility risk is there.
  6501.  
  6502. Trivia note:  FoxBASE+/Mac was used for color testing because it employs a similar screen refresh technique, but testing was restricted because FoxBASE doesn't support the HyperCard 2.x XCMD programming interface, which HyperTint requires.</text>
  6503.     </content>
  6504.     <content>
  6505.         <layer>background</layer>
  6506.         <id>10</id>
  6507.         <text>Notes and Tips</text>
  6508.     </content>
  6509.     <name>Compatibility with Future</name>
  6510.     <script></script>
  6511. </card>
  6512.  
  6513.  
  6514. card_6295.xml
  6515. <?xml version="1.0" encoding="utf-8" ?>
  6516. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  6517. <card>
  6518.     <id>6295</id>
  6519.     <filler1>0</filler1>
  6520.     <cantDelete> <false /> </cantDelete>
  6521.     <showPict> <true /> </showPict>
  6522.     <dontSearch> <false /> </dontSearch>
  6523.     <owner>3997</owner>
  6524.     <link rel="stylesheet" type="text/css" href="stylesheet_3268.css" />
  6525.     <content>
  6526.         <layer>background</layer>
  6527.         <id>4</id>
  6528.         <text>Additional Cards in Documentation Stack</text>
  6529.     </content>
  6530.     <content>
  6531.         <layer>background</layer>
  6532.         <id>6</id>
  6533.         <text><span class="style2">he full version of the HyperTint documentation stack cover the following additional topics in the ΓÇ£Notes and TipsΓÇ¥ section.
  6534.  
  6535. </span><span class="style9">Colors:  Not always what you expect</span><span class="style2">
  6536.  
  6537. This card just points out that when dealing with system with 256 or fewer colors, colors get translated to the nearest available color, rather than exactly matching the color specifier that is passed to the command.
  6538.  
  6539. </span><span class="style9">What Wnet Wrong?</span><span class="style2">
  6540.  
  6541. This card discusses the use of HyperCard's </span><span class="style7">the result</span><span class="style2"> function to find errors:  both ΓÇ£typosΓÇ¥ during development and insufficient memory errors during ΓÇ£run-time.ΓÇ¥
  6542.  
  6543. </span><span class="style9">Locking the Screen Before Making Changes</span><span class="style2">
  6544.  
  6545. This card points out that, when moving between cards with different color schemes, the screen should be locked before leaving the first card and unlocked after arriving at the second card.  This gives HyperTint a chance to change the color scheme before HyperCard updates the card image.
  6546.  
  6547. </span><span class="style9">Colorizing Black and White Fields</span><span class="style2">
  6548.  
  6549. This card provides the tip that, even for a field that is left as black and white, typing and scrolling performance will be improved if the field is assigned to a color region.  (The color region will use black as the foreground color and white as the background color.)
  6550.  
  6551. </span><span class="style9">Turning HyperTint off for Background Stacks</span><span class="style2">
  6552.  
  6553. This card discusses how, if it is desired to free up the memory used by HyperTint, a stack can remove HyperTint when the stack is switched to the background.
  6554.  
  6555. </span><span class="style9">Peaceful Coexistence with Black and White Systems</span><span class="style2">
  6556.  
  6557. This card discusses a few techniques that can be used when developing stacks that must run on both color and black and white systems.
  6558.  
  6559. </span><span class="style9">Enough Memory to Install?</span><span class="style2">
  6560.  
  6561. Gives an example script that will install HyperTint and then check that enough memory remains for HyperCard to function properly.
  6562.  
  6563. </span><span class="style9">Changing Color Depth</span><span class="style2">
  6564.  
  6565. HyperTint does not automatically detect changes in the color environment:  for instance, when a user uses the Monitors control panel to change the number of colors or drags the stack's window to another screen.  This card discusses handlers that can be added to a stack to detect the most common changes in the color environment and reinstall HyperTint to match the new screen settings.
  6566.  
  6567. This demo stack uses these handlers to adapt to changes in screen settings.
  6568.  
  6569. </span><span class="style9">Most Commands Don't Update the Screen</span><span class="style2">
  6570.  
  6571. This card points out that many of the HyperTint commands, by default, do not cause an immediate screen update.  This makes it easier for a script to implement popup fields and similar features.  This card also discusses the </span><span class="style12">noDelay</span><span class="style2"> keyword which can be used in the few cases where immediate updates are desired.
  6572.  
  6573. </span><span class="style9">Layering of HyperTint Color Regions</span><span class="style2">
  6574.  
  6575. When implementing popup fields (or moving buttons), it is important that the popping field be assigned to a higher-numbered color region than any of the color regions it will obscured when popped up.
  6576.  
  6577. </span><span class="style9">Clear Regions When No Longer Needed</span><span class="style2">
  6578.  
  6579. This card discusses that color regions should be cleared when leaving a card/background that used them.  Forgetting to clear a region will leave the region active, which will look strange because the next card probably will have colorized sections that don't match the fields and buttons on the card.  Stacks that exclusively use the HTColorScheme command to chnage color layouts do not have to worry about thisd problem;  HTColorScheme automatically clears unused color regions. 
  6580.  
  6581. </span><span class="style9">Installing the HyperTint Externals</span><span class="style2">
  6582.  
  6583. Discusses how to use ResEdit, ResCopy 2.0, or the Resource Mover card to install the HyperTint XCMDs and XFCNs into a stack.
  6584.  
  6585. </span><span class="style9">Creating and Installing Picture Resources</span><span class="style2">
  6586.  
  6587. Discusses how a PICT resource can be created by copying a picture to the Scrapbook and then using ResEdit, ResCopy 2.0, or the Resource Mover card to copy the PICT resource into a stack from the Scrapbook File.
  6588.  
  6589. </span><span class="style9">HTWriteScheme Assumes Resource Fork</span><span class="style2">
  6590.  
  6591. Points out that the HTWriteScheme XCMD assumes that the current stack already has a resource fork.  Discusses one trick that causes HyperCard to create a resource fork for a stack.
  6592.  
  6593. </span><span class="style9">Compatibility with AddMotion</span><span class="style2">
  6594.  
  6595. This card discusses the HTXBury XFCN and the HTXDigup XCMD will have been included as a way to provide compatibility with AddMotion, the HyperCard animation add-in from Motion Works.
  6596.  
  6597. </span><span class="style9">This Stack:  Installing HyperTint
  6598. This Stack:  Changing Color Depth
  6599. This Stack:  Colorization Strategy 
  6600. This Stack:  Global Variables
  6601.  
  6602. </span><span class="style2">These cards discuss the scripts and global variables used to support color in the HyperTint stack.  These provide an example of the techniques described on other cards in the ΓÇ£Notes and TipsΓÇ¥ section.
  6603.  
  6604. This demo version uses the same scripts as in the full HyperTint documentation stack.
  6605. </span></text>
  6606.     </content>
  6607.     <content>
  6608.         <layer>background</layer>
  6609.         <id>10</id>
  6610.         <text>Notes and Tips</text>
  6611.     </content>
  6612.     <name>Additional Cards in Docum</name>
  6613.     <script></script>
  6614. </card>
  6615.  
  6616.  
  6617. card_18735.xml
  6618. <?xml version="1.0" encoding="utf-8" ?>
  6619. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  6620. <card>
  6621.     <id>18735</id>
  6622.     <filler1>0</filler1>
  6623.     <cantDelete> <false /> </cantDelete>
  6624.     <showPict> <true /> </showPict>
  6625.     <dontSearch> <false /> </dontSearch>
  6626.     <owner>18488</owner>
  6627.     <link rel="stylesheet" type="text/css" href="stylesheet_3268.css" />
  6628.     <part>
  6629.         <id>5</id>
  6630.         <type>field</type>
  6631.         <visible> <false /> </visible>
  6632.         <dontWrap> <false /> </dontWrap>
  6633.         <dontSearch> <true /> </dontSearch>
  6634.         <sharedText> <false /> </sharedText>
  6635.         <fixedLineHeight> <false /> </fixedLineHeight>
  6636.         <autoTab> <false /> </autoTab>
  6637.         <lockText> <true /> </lockText>
  6638.         <rect>
  6639.             <left>60</left>
  6640.             <top>115</top>
  6641.             <right>331</right>
  6642.             <bottom>180</bottom>
  6643.         </rect>
  6644.         <style>shadow</style>
  6645.         <autoSelect> <false /> </autoSelect>
  6646.         <showLines> <false /> </showLines>
  6647.         <wideMargins> <true /> </wideMargins>
  6648.         <multipleLines> <false /> </multipleLines>
  6649.         <reservedFamily> 0 </reservedFamily>
  6650.         <titleWidth>0</titleWidth>
  6651.         <icon>0</icon>
  6652.         <textAlign>left</textAlign>
  6653.         <font>Geneva</font>
  6654.         <textSize>9</textSize>
  6655.         <textStyle>plain</textStyle>
  6656.         <textHeight>12</textHeight>
  6657.         <name>AppleLink</name>
  6658.         <script>on mouseDown
  6659. hide me
  6660. end mouseDown</script>
  6661.     </part>
  6662.     <part>
  6663.         <id>7</id>
  6664.         <type>field</type>
  6665.         <visible> <false /> </visible>
  6666.         <dontWrap> <false /> </dontWrap>
  6667.         <dontSearch> <true /> </dontSearch>
  6668.         <sharedText> <false /> </sharedText>
  6669.         <fixedLineHeight> <false /> </fixedLineHeight>
  6670.         <autoTab> <false /> </autoTab>
  6671.         <lockText> <true /> </lockText>
  6672.         <rect>
  6673.             <left>29</left>
  6674.             <top>180</top>
  6675.             <right>409</right>
  6676.             <bottom>222</bottom>
  6677.         </rect>
  6678.         <style>shadow</style>
  6679.         <autoSelect> <false /> </autoSelect>
  6680.         <showLines> <false /> </showLines>
  6681.         <wideMargins> <false /> </wideMargins>
  6682.         <multipleLines> <false /> </multipleLines>
  6683.         <reservedFamily> 0 </reservedFamily>
  6684.         <titleWidth>0</titleWidth>
  6685.         <icon>0</icon>
  6686.         <textAlign>left</textAlign>
  6687.         <font>Geneva</font>
  6688.         <textSize>12</textSize>
  6689.         <textStyle>plain</textStyle>
  6690.         <textHeight>16</textHeight>
  6691.         <name>Heizer Note</name>
  6692.         <script></script>
  6693.     </part>
  6694.     <part>
  6695.         <id>12</id>
  6696.         <type>button</type>
  6697.         <visible> <true /> </visible>
  6698.         <reserved5> 0 </reserved5>
  6699.         <reserved4> 0 </reserved4>
  6700.         <reserved3> 0 </reserved3>
  6701.         <reserved2> 0 </reserved2>
  6702.         <reserved1> 0 </reserved1>
  6703.         <enabled> <true /> </enabled>
  6704.         <rect>
  6705.             <left>119</left>
  6706.             <top>169</top>
  6707.             <right>334</right>
  6708.             <bottom>191</bottom>
  6709.         </rect>
  6710.         <style>shadow</style>
  6711.         <showName> <true /> </showName>
  6712.         <highlight> <false /> </highlight>
  6713.         <autoHighlight> <true /> </autoHighlight>
  6714.         <sharedHighlight> <true /> </sharedHighlight>
  6715.         <family>0</family>
  6716.         <titleWidth>0</titleWidth>
  6717.         <icon>0</icon>
  6718.         <textAlign>center</textAlign>
  6719.         <font>Chicago</font>
  6720.         <textSize>12</textSize>
  6721.         <textStyle>plain</textStyle>
  6722.         <name>Order Form</name>
  6723.         <script>on mouseUp
  6724. go to card id 23519
  6725. end mouseUp
  6726.  
  6727. </script>
  6728.     </part>
  6729.     <part>
  6730.         <id>14</id>
  6731.         <type>button</type>
  6732.         <visible> <true /> </visible>
  6733.         <reserved5> 0 </reserved5>
  6734.         <reserved4> 0 </reserved4>
  6735.         <reserved3> 0 </reserved3>
  6736.         <reserved2> 0 </reserved2>
  6737.         <reserved1> 0 </reserved1>
  6738.         <enabled> <true /> </enabled>
  6739.         <rect>
  6740.             <left>119</left>
  6741.             <top>82</top>
  6742.             <right>334</right>
  6743.             <bottom>104</bottom>
  6744.         </rect>
  6745.         <style>shadow</style>
  6746.         <showName> <true /> </showName>
  6747.         <highlight> <false /> </highlight>
  6748.         <autoHighlight> <true /> </autoHighlight>
  6749.         <sharedHighlight> <true /> </sharedHighlight>
  6750.         <family>0</family>
  6751.         <titleWidth>0</titleWidth>
  6752.         <icon>0</icon>
  6753.         <textAlign>center</textAlign>
  6754.         <font>Chicago</font>
  6755.         <textSize>12</textSize>
  6756.         <textStyle>plain</textStyle>
  6757.         <name>About Symplex</name>
  6758.         <script>on mouseUp
  6759. if HTUIsInstalled() then
  6760. htvisual "dissolve1"
  6761. else
  6762. visual effect dissolve very fast
  6763. end if
  6764. go to card id 18200
  6765. end mouseUp
  6766.  
  6767. </script>
  6768.     </part>
  6769.     <part>
  6770.         <id>17</id>
  6771.         <type>button</type>
  6772.         <visible> <true /> </visible>
  6773.         <reserved5> 0 </reserved5>
  6774.         <reserved4> 0 </reserved4>
  6775.         <reserved3> 0 </reserved3>
  6776.         <reserved2> 0 </reserved2>
  6777.         <reserved1> 0 </reserved1>
  6778.         <enabled> <true /> </enabled>
  6779.         <rect>
  6780.             <left>119</left>
  6781.             <top>111</top>
  6782.             <right>334</right>
  6783.             <bottom>133</bottom>
  6784.         </rect>
  6785.         <style>shadow</style>
  6786.         <showName> <true /> </showName>
  6787.         <highlight> <false /> </highlight>
  6788.         <autoHighlight> <true /> </autoHighlight>
  6789.         <sharedHighlight> <true /> </sharedHighlight>
  6790.         <family>0</family>
  6791.         <titleWidth>0</titleWidth>
  6792.         <icon>0</icon>
  6793.         <textAlign>center</textAlign>
  6794.         <font>Chicago</font>
  6795.         <textSize>12</textSize>
  6796.         <textStyle>plain</textStyle>
  6797.         <name>Distribution of this Demo</name>
  6798.         <script>on mouseUp
  6799. if HTUIsInstalled() then
  6800. htvisual "dissolve1"
  6801. else
  6802. visual effect dissolve very fast
  6803. end if
  6804. go to card id 25926
  6805. end mouseUp
  6806.  
  6807. </script>
  6808.     </part>
  6809.     <part>
  6810.         <id>18</id>
  6811.         <type>button</type>
  6812.         <visible> <true /> </visible>
  6813.         <reserved5> 0 </reserved5>
  6814.         <reserved4> 0 </reserved4>
  6815.         <reserved3> 0 </reserved3>
  6816.         <reserved2> 0 </reserved2>
  6817.         <reserved1> 0 </reserved1>
  6818.         <enabled> <true /> </enabled>
  6819.         <rect>
  6820.             <left>119</left>
  6821.             <top>198</top>
  6822.             <right>334</right>
  6823.             <bottom>220</bottom>
  6824.         </rect>
  6825.         <style>shadow</style>
  6826.         <showName> <true /> </showName>
  6827.         <highlight> <false /> </highlight>
  6828.         <autoHighlight> <true /> </autoHighlight>
  6829.         <sharedHighlight> <true /> </sharedHighlight>
  6830.         <family>0</family>
  6831.         <titleWidth>0</titleWidth>
  6832.         <icon>0</icon>
  6833.         <textAlign>center</textAlign>
  6834.         <font>Chicago</font>
  6835.         <textSize>12</textSize>
  6836.         <textStyle>plain</textStyle>
  6837.         <name>License Agreement</name>
  6838.         <script>on mouseUp
  6839. go to card id 29183
  6840. end mouseUp
  6841.  
  6842. </script>
  6843.     </part>
  6844.     <part>
  6845.         <id>20</id>
  6846.         <type>button</type>
  6847.         <visible> <true /> </visible>
  6848.         <reserved5> 0 </reserved5>
  6849.         <reserved4> 0 </reserved4>
  6850.         <reserved3> 0 </reserved3>
  6851.         <reserved2> 0 </reserved2>
  6852.         <reserved1> 0 </reserved1>
  6853.         <enabled> <true /> </enabled>
  6854.         <rect>
  6855.             <left>119</left>
  6856.             <top>140</top>
  6857.             <right>334</right>
  6858.             <bottom>162</bottom>
  6859.         </rect>
  6860.         <style>shadow</style>
  6861.         <showName> <true /> </showName>
  6862.         <highlight> <false /> </highlight>
  6863.         <autoHighlight> <true /> </autoHighlight>
  6864.         <sharedHighlight> <true /> </sharedHighlight>
  6865.         <family>0</family>
  6866.         <titleWidth>0</titleWidth>
  6867.         <icon>0</icon>
  6868.         <textAlign>center</textAlign>
  6869.         <font>Chicago</font>
  6870.         <textSize>12</textSize>
  6871.         <textStyle>plain</textStyle>
  6872.         <name>Ordering Info</name>
  6873.         <script>on mouseUp
  6874. if HTUIsInstalled() then
  6875. htvisual "dissolve1"
  6876. else
  6877. visual effect dissolve very fast
  6878. end if
  6879. go to card id 19338
  6880. end mouseUp
  6881.  
  6882. </script>
  6883.     </part>
  6884.     <content>
  6885.         <layer>background</layer>
  6886.         <id>4</id>
  6887.         <text>About HyperTint</text>
  6888.     </content>
  6889.     <content>
  6890.         <layer>background</layer>
  6891.         <id>6</id>
  6892.         <text><span class="style11"></span><span class="style2">              HyperTint was created by Symplex Systems.  
  6893.  
  6894.  
  6895.  
  6896.  
  6897.  
  6898.  
  6899.  
  6900. </span></text>
  6901.     </content>
  6902.     <content>
  6903.         <layer>card</layer>
  6904.         <id>5</id>
  6905.         <text>I am only on AppleLink a few times a month.  If you want to reach me quickly from AppleLink, address the message to "a347@mindlink.UUCP@internet#".  This will send it to my usenet mail address.
  6906. </text>
  6907.     </content>
  6908.     <content>
  6909.         <layer>card</layer>
  6910.         <id>7</id>
  6911.         <text><span class="style11">his section of the stack will be changed based on the desired information about Heizer, if Heizer is interested in distributing the stack.  The emulation of a IBM computer display will be replaced with a more eye-friendly color scheme.</span></text>
  6912.     </content>
  6913.     <content>
  6914.         <layer>background</layer>
  6915.         <id>7</id>
  6916.         <text>About HyperTint</text>
  6917.     </content>
  6918.     <name>About HyperTint</name>
  6919.     <script>-- on closeCard
  6920.  
  6921. -- HTRClear 7
  6922. -- hide card field "Heizer Note"
  6923. -- pass closeCard
  6924. -- end closeCard
  6925.  
  6926. -- on openCard
  6927. -- send openCard to this background
  6928. -- HTRAddRect 7,the rect of card field "Note","shadownoBorder","field"
  6929. -- HTRBackground 7,"White"  -- (I'm too lazy to edit the color scheme today)
  6930. -- show card field "Note"
  6931. -- end openCard
  6932.  
  6933. on markCardMenu
  6934. -- We want this card treated as a "section header", so no
  6935. -- checkmark should be applied.
  6936. end MarkCardMenu
  6937. </script>
  6938. </card>
  6939.  
  6940.  
  6941. card_18200.xml
  6942. <?xml version="1.0" encoding="utf-8" ?>
  6943. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  6944. <card>
  6945.     <id>18200</id>
  6946.     <filler1>0</filler1>
  6947.     <cantDelete> <false /> </cantDelete>
  6948.     <showPict> <true /> </showPict>
  6949.     <dontSearch> <false /> </dontSearch>
  6950.     <owner>18488</owner>
  6951.     <link rel="stylesheet" type="text/css" href="stylesheet_3268.css" />
  6952.     <part>
  6953.         <id>4</id>
  6954.         <type>button</type>
  6955.         <visible> <true /> </visible>
  6956.         <reserved5> 0 </reserved5>
  6957.         <reserved4> 0 </reserved4>
  6958.         <reserved3> 0 </reserved3>
  6959.         <reserved2> 0 </reserved2>
  6960.         <reserved1> 0 </reserved1>
  6961.         <enabled> <true /> </enabled>
  6962.         <rect>
  6963.             <left>318</left>
  6964.             <top>88</top>
  6965.             <right>330</right>
  6966.             <bottom>103</bottom>
  6967.         </rect>
  6968.         <style>transparent</style>
  6969.         <showName> <true /> </showName>
  6970.         <highlight> <false /> </highlight>
  6971.         <autoHighlight> <false /> </autoHighlight>
  6972.         <sharedHighlight> <true /> </sharedHighlight>
  6973.         <family>0</family>
  6974.         <titleWidth>0</titleWidth>
  6975.         <icon>0</icon>
  6976.         <textAlign>center</textAlign>
  6977.         <font>Chicago</font>
  6978.         <textSize>12</textSize>
  6979.         <textStyle>plain</textStyle>
  6980.         <name>*</name>
  6981.         <script>on mouseUp
  6982. HTRAddRect 7,the rect of card field "AppleLink", "shadownoBorder", "field"
  6983. show card field "AppleLink"
  6984. end mouseUp</script>
  6985.     </part>
  6986.     <part>
  6987.         <id>5</id>
  6988.         <type>field</type>
  6989.         <visible> <false /> </visible>
  6990.         <dontWrap> <false /> </dontWrap>
  6991.         <dontSearch> <true /> </dontSearch>
  6992.         <sharedText> <false /> </sharedText>
  6993.         <fixedLineHeight> <false /> </fixedLineHeight>
  6994.         <autoTab> <false /> </autoTab>
  6995.         <lockText> <true /> </lockText>
  6996.         <rect>
  6997.             <left>60</left>
  6998.             <top>115</top>
  6999.             <right>331</right>
  7000.             <bottom>180</bottom>
  7001.         </rect>
  7002.         <style>shadow</style>
  7003.         <autoSelect> <false /> </autoSelect>
  7004.         <showLines> <false /> </showLines>
  7005.         <wideMargins> <true /> </wideMargins>
  7006.         <multipleLines> <false /> </multipleLines>
  7007.         <reservedFamily> 0 </reservedFamily>
  7008.         <titleWidth>0</titleWidth>
  7009.         <icon>0</icon>
  7010.         <textAlign>left</textAlign>
  7011.         <font>Geneva</font>
  7012.         <textSize>9</textSize>
  7013.         <textStyle>plain</textStyle>
  7014.         <textHeight>12</textHeight>
  7015.         <name>AppleLink</name>
  7016.         <script>on mouseDown
  7017. HTRSubRect 7,the rect of card field "AppleLink",┬¼
  7018. "shadowNoBorder"
  7019. if the result is not empty then answer the result
  7020. hide me
  7021. end mouseDown</script>
  7022.     </part>
  7023.     <content>
  7024.         <layer>background</layer>
  7025.         <id>4</id>
  7026.         <text>Symplex Systems</text>
  7027.     </content>
  7028.     <content>
  7029.         <layer>background</layer>
  7030.         <id>6</id>
  7031.         <text><span class="style27"></span><span class="style11">          #1703 - 4134 Maywood Street       Tel:   (604) 433-1795
  7032.           Burnaby, British Columbia                Fax:  (604) 430-8516
  7033.           Canada                                             Internet :    john_miller@mindlink.bc.ca</span><span class="style19">
  7034. </span><span class="style11">          V5H 4C9                                          AppleLink:  SYMPLEX
  7035.                                                                                                 
  7036.   Symplex Systems provides a variety of Macintosh programming and consulting  services.  Consider Symplex for innovative solutions.
  7037. </span><span class="style2">
  7038. </span><span class="style11">                                ΓÇó Macintosh consulting and software development
  7039.                                 ΓÇó C, Pascal, C++, Assembly language
  7040.                                 ΓÇó HyperCard, SuperCard, XCMDs & XFCNs
  7041.                                 ΓÇó FoxBASE
  7042.                                 ΓÇó Spreadsheets, databases, and stuff
  7043.                                 ΓÇó AutoCAD (MS-DOS)
  7044. </span></text>
  7045.     </content>
  7046.     <content>
  7047.         <layer>card</layer>
  7048.         <id>5</id>
  7049.         <text>I am only on AppleLink a few times a month.  If you want to reach me quickly from AppleLink, address the message to "a347@mindlink.UUCP@internet#".  This will send it to my usenet mail address.
  7050. </text>
  7051.     </content>
  7052.     <content>
  7053.         <layer>background</layer>
  7054.         <id>7</id>
  7055.         <text>About HyperTint</text>
  7056.     </content>
  7057.     <name>Symplex Systems</name>
  7058.     <script></script>
  7059. </card>
  7060.  
  7061.  
  7062. card_25926.xml
  7063. <?xml version="1.0" encoding="utf-8" ?>
  7064. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  7065. <card>
  7066.     <id>25926</id>
  7067.     <filler1>0</filler1>
  7068.     <cantDelete> <false /> </cantDelete>
  7069.     <showPict> <true /> </showPict>
  7070.     <dontSearch> <false /> </dontSearch>
  7071.     <owner>18488</owner>
  7072.     <link rel="stylesheet" type="text/css" href="stylesheet_3268.css" />
  7073.     <content>
  7074.         <layer>background</layer>
  7075.         <id>4</id>
  7076.         <text>Distribution of this Demo</text>
  7077.     </content>
  7078.     <content>
  7079.         <layer>background</layer>
  7080.         <id>6</id>
  7081.         <text>
  7082. This demo may be freely distributed, as long as it is not modified.  We encourage you to pass the demo on to others.  (Please.)
  7083.  
  7084. This demo should only be distributed in its entirety.  The stack's scripts and its XCMDs and XFCNs should not be distributed separately.
  7085.  
  7086. ┬⌐ 1992 Symplex Systems</text>
  7087.     </content>
  7088.     <content>
  7089.         <layer>background</layer>
  7090.         <id>7</id>
  7091.         <text>About HyperTint</text>
  7092.     </content>
  7093.     <name>Distribution of this Demo</name>
  7094.     <script></script>
  7095. </card>
  7096.  
  7097.  
  7098. card_19338.xml
  7099. <?xml version="1.0" encoding="utf-8" ?>
  7100. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  7101. <card>
  7102.     <id>19338</id>
  7103.     <filler1>0</filler1>
  7104.     <cantDelete> <false /> </cantDelete>
  7105.     <showPict> <true /> </showPict>
  7106.     <dontSearch> <false /> </dontSearch>
  7107.     <owner>18488</owner>
  7108.     <link rel="stylesheet" type="text/css" href="stylesheet_3268.css" />
  7109.     <content>
  7110.         <layer>background</layer>
  7111.         <id>4</id>
  7112.         <text>Ordering Info </text>
  7113.     </content>
  7114.     <content>
  7115.         <layer>background</layer>
  7116.         <id>6</id>
  7117.         <text><span class="style2"></span><span class="style11">HyperTint costs US$35 per single-CPU copy.  The next card contains an order form which can be mailed, with check or money order, to Symplex Systems.
  7118.  
  7119. Buyers will receive a disk containing the full HyperTint documentation stack and the externals with all options enabled.  Technical support is provided to buyers, either by telephone or by electronic mail on AppleLink or the Internet.  The Internet e-mail address is also accessible from CompuServe, and possibly other commercial electronic services.
  7120.  
  7121. A 75-page printed manual, containing the same information as the documentation stack, is available at an additional charge.
  7122.  
  7123. A license is available from Symplex Systems for distribution of the HyperTint externals in a stack.</span></text>
  7124.     </content>
  7125.     <content>
  7126.         <layer>background</layer>
  7127.         <id>7</id>
  7128.         <text>About HyperTint</text>
  7129.     </content>
  7130.     <name>Ordering Info </name>
  7131.     <script></script>
  7132. </card>
  7133.  
  7134.  
  7135. card_23519.xml
  7136. <?xml version="1.0" encoding="utf-8" ?>
  7137. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  7138. <card>
  7139.     <id>23519</id>
  7140.     <filler1>0</filler1>
  7141.     <cantDelete> <false /> </cantDelete>
  7142.     <showPict> <true /> </showPict>
  7143.     <dontSearch> <false /> </dontSearch>
  7144.     <owner>19747</owner>
  7145.     <link rel="stylesheet" type="text/css" href="stylesheet_3268.css" />
  7146.     <part>
  7147.         <id>4</id>
  7148.         <type>button</type>
  7149.         <visible> <true /> </visible>
  7150.         <reserved5> 0 </reserved5>
  7151.         <reserved4> 0 </reserved4>
  7152.         <reserved3> 0 </reserved3>
  7153.         <reserved2> 0 </reserved2>
  7154.         <reserved1> 0 </reserved1>
  7155.         <enabled> <true /> </enabled>
  7156.         <rect>
  7157.             <left>154</left>
  7158.             <top>21</top>
  7159.             <right>294</right>
  7160.             <bottom>43</bottom>
  7161.         </rect>
  7162.         <style>roundrect</style>
  7163.         <showName> <true /> </showName>
  7164.         <highlight> <false /> </highlight>
  7165.         <autoHighlight> <false /> </autoHighlight>
  7166.         <sharedHighlight> <true /> </sharedHighlight>
  7167.         <family>0</family>
  7168.         <titleWidth>0</titleWidth>
  7169.         <icon>0</icon>
  7170.         <textAlign>center</textAlign>
  7171.         <font>Geneva</font>
  7172.         <textSize>9</textSize>
  7173.         <textStyle>bold</textStyle>
  7174.         <name>Print Order Form</name>
  7175.         <script>on mouseUp
  7176. -- Make sure that manuals are not being ordered separately
  7177. if fetchIntField("NummanCopies") > 0 ┬¼
  7178. and fetchIntField("NumDiskCopies") is 0 then
  7179. answer "Sorry, manuals cannot be ordered separately."
  7180. else if fetchIntField("NumDiskCopies") is 0 then
  7181. answer "Please fill out the form before printing."
  7182. else
  7183.  
  7184. hide me
  7185. hide background button "GoLeft"
  7186. hide background button "GoRight"
  7187. -- set the showPict of this card to false
  7188.  
  7189. open printing
  7190. if the result is not empty then
  7191. answer the result
  7192. end if
  7193.  
  7194. -- Print out the license agreement before printing the order form
  7195. go next card
  7196.  
  7197. print this card
  7198. if the result is not empty then
  7199. answer the result
  7200. end if
  7201.  
  7202. -- Now print the order form
  7203. go previous card
  7204. print this card
  7205. if the result is not empty then
  7206. answer the result
  7207. end if
  7208.  
  7209. close printing
  7210. if the result is not empty then
  7211. answer the result
  7212. end if
  7213.  
  7214. show me
  7215. show background button "GoLeft"
  7216. show background button "GoRight"
  7217. -- set the showPict of this card to true
  7218.  
  7219. -- answer "Please mail this form to Symplex Systems."┬¼
  7220. -- with "Show Address" or "OK"
  7221. -- if it is "Show Address" then
  7222. -- go to card "Symplex Systems"
  7223. -- end if
  7224. end if
  7225. end mouseUp</script>
  7226.     </part>
  7227.     <part>
  7228.         <id>9</id>
  7229.         <type>field</type>
  7230.         <visible> <true /> </visible>
  7231.         <dontWrap> <false /> </dontWrap>
  7232.         <dontSearch> <false /> </dontSearch>
  7233.         <sharedText> <false /> </sharedText>
  7234.         <fixedLineHeight> <true /> </fixedLineHeight>
  7235.         <autoTab> <true /> </autoTab>
  7236.         <lockText> <false /> </lockText>
  7237.         <rect>
  7238.             <left>104</left>
  7239.             <top>47</top>
  7240.             <right>379</right>
  7241.             <bottom>70</bottom>
  7242.         </rect>
  7243.         <style>transparent</style>
  7244.         <autoSelect> <false /> </autoSelect>
  7245.         <showLines> <true /> </showLines>
  7246.         <wideMargins> <false /> </wideMargins>
  7247.         <multipleLines> <false /> </multipleLines>
  7248.         <reservedFamily> 0 </reservedFamily>
  7249.         <titleWidth>0</titleWidth>
  7250.         <icon>0</icon>
  7251.         <textAlign>left</textAlign>
  7252.         <font>Geneva</font>
  7253.         <textSize>12</textSize>
  7254.         <textStyle>plain</textStyle>
  7255.         <textHeight>16</textHeight>
  7256.         <name>Name</name>
  7257.         <script>on openfield
  7258. adjustScroll "0,0,379,70"
  7259. end openField</script>
  7260.     </part>
  7261.     <part>
  7262.         <id>11</id>
  7263.         <type>field</type>
  7264.         <visible> <true /> </visible>
  7265.         <dontWrap> <false /> </dontWrap>
  7266.         <dontSearch> <false /> </dontSearch>
  7267.         <sharedText> <false /> </sharedText>
  7268.         <fixedLineHeight> <true /> </fixedLineHeight>
  7269.         <autoTab> <true /> </autoTab>
  7270.         <lockText> <false /> </lockText>
  7271.         <rect>
  7272.             <left>104</left>
  7273.             <top>68</top>
  7274.             <right>379</right>
  7275.             <bottom>122</bottom>
  7276.         </rect>
  7277.         <style>transparent</style>
  7278.         <autoSelect> <false /> </autoSelect>
  7279.         <showLines> <true /> </showLines>
  7280.         <wideMargins> <false /> </wideMargins>
  7281.         <multipleLines> <false /> </multipleLines>
  7282.         <reservedFamily> 0 </reservedFamily>
  7283.         <titleWidth>0</titleWidth>
  7284.         <icon>0</icon>
  7285.         <textAlign>left</textAlign>
  7286.         <font>Geneva</font>
  7287.         <textSize>12</textSize>
  7288.         <textStyle>plain</textStyle>
  7289.         <textHeight>16</textHeight>
  7290.         <name>Company</name>
  7291.         <script></script>
  7292.     </part>
  7293.     <part>
  7294.         <id>14</id>
  7295.         <type>field</type>
  7296.         <visible> <true /> </visible>
  7297.         <dontWrap> <false /> </dontWrap>
  7298.         <dontSearch> <false /> </dontSearch>
  7299.         <sharedText> <false /> </sharedText>
  7300.         <fixedLineHeight> <true /> </fixedLineHeight>
  7301.         <autoTab> <true /> </autoTab>
  7302.         <lockText> <false /> </lockText>
  7303.         <rect>
  7304.             <left>104</left>
  7305.             <top>124</top>
  7306.             <right>379</right>
  7307.             <bottom>211</bottom>
  7308.         </rect>
  7309.         <style>transparent</style>
  7310.         <autoSelect> <false /> </autoSelect>
  7311.         <showLines> <true /> </showLines>
  7312.         <wideMargins> <false /> </wideMargins>
  7313.         <multipleLines> <false /> </multipleLines>
  7314.         <reservedFamily> 0 </reservedFamily>
  7315.         <titleWidth>0</titleWidth>
  7316.         <icon>0</icon>
  7317.         <textAlign>left</textAlign>
  7318.         <font>Geneva</font>
  7319.         <textSize>12</textSize>
  7320.         <textStyle>plain</textStyle>
  7321.         <textHeight>16</textHeight>
  7322.         <name>Address</name>
  7323.         <script></script>
  7324.     </part>
  7325.     <part>
  7326.         <id>32</id>
  7327.         <type>field</type>
  7328.         <visible> <true /> </visible>
  7329.         <dontWrap> <false /> </dontWrap>
  7330.         <dontSearch> <false /> </dontSearch>
  7331.         <sharedText> <false /> </sharedText>
  7332.         <fixedLineHeight> <true /> </fixedLineHeight>
  7333.         <autoTab> <true /> </autoTab>
  7334.         <lockText> <false /> </lockText>
  7335.         <rect>
  7336.             <left>104</left>
  7337.             <top>214</top>
  7338.             <right>379</right>
  7339.             <bottom>233</bottom>
  7340.         </rect>
  7341.         <style>transparent</style>
  7342.         <autoSelect> <false /> </autoSelect>
  7343.         <showLines> <true /> </showLines>
  7344.         <wideMargins> <false /> </wideMargins>
  7345.         <multipleLines> <false /> </multipleLines>
  7346.         <reservedFamily> 0 </reservedFamily>
  7347.         <titleWidth>0</titleWidth>
  7348.         <icon>0</icon>
  7349.         <textAlign>left</textAlign>
  7350.         <font>Geneva</font>
  7351.         <textSize>12</textSize>
  7352.         <textStyle>plain</textStyle>
  7353.         <textHeight>16</textHeight>
  7354.         <name>Phone</name>
  7355.         <script></script>
  7356.     </part>
  7357.     <part>
  7358.         <id>20</id>
  7359.         <type>field</type>
  7360.         <visible> <true /> </visible>
  7361.         <dontWrap> <false /> </dontWrap>
  7362.         <dontSearch> <false /> </dontSearch>
  7363.         <sharedText> <false /> </sharedText>
  7364.         <fixedLineHeight> <true /> </fixedLineHeight>
  7365.         <autoTab> <true /> </autoTab>
  7366.         <lockText> <false /> </lockText>
  7367.         <rect>
  7368.             <left>104</left>
  7369.             <top>239</top>
  7370.             <right>379</right>
  7371.             <bottom>258</bottom>
  7372.         </rect>
  7373.         <style>transparent</style>
  7374.         <autoSelect> <false /> </autoSelect>
  7375.         <showLines> <true /> </showLines>
  7376.         <wideMargins> <false /> </wideMargins>
  7377.         <multipleLines> <false /> </multipleLines>
  7378.         <reservedFamily> 0 </reservedFamily>
  7379.         <titleWidth>0</titleWidth>
  7380.         <icon>0</icon>
  7381.         <textAlign>left</textAlign>
  7382.         <font>Geneva</font>
  7383.         <textSize>12</textSize>
  7384.         <textStyle>plain</textStyle>
  7385.         <textHeight>16</textHeight>
  7386.         <name>Fax</name>
  7387.         <script></script>
  7388.     </part>
  7389.     <part>
  7390.         <id>18</id>
  7391.         <type>field</type>
  7392.         <visible> <true /> </visible>
  7393.         <dontWrap> <false /> </dontWrap>
  7394.         <dontSearch> <false /> </dontSearch>
  7395.         <sharedText> <false /> </sharedText>
  7396.         <fixedLineHeight> <true /> </fixedLineHeight>
  7397.         <autoTab> <true /> </autoTab>
  7398.         <lockText> <false /> </lockText>
  7399.         <rect>
  7400.             <left>68</left>
  7401.             <top>322</top>
  7402.             <right>225</right>
  7403.             <bottom>341</bottom>
  7404.         </rect>
  7405.         <style>transparent</style>
  7406.         <autoSelect> <false /> </autoSelect>
  7407.         <showLines> <true /> </showLines>
  7408.         <wideMargins> <false /> </wideMargins>
  7409.         <multipleLines> <false /> </multipleLines>
  7410.         <reservedFamily> 0 </reservedFamily>
  7411.         <titleWidth>0</titleWidth>
  7412.         <icon>0</icon>
  7413.         <textAlign>left</textAlign>
  7414.         <font>Geneva</font>
  7415.         <textSize>12</textSize>
  7416.         <textStyle>plain</textStyle>
  7417.         <textHeight>16</textHeight>
  7418.         <name>EmailServ1</name>
  7419.         <script></script>
  7420.     </part>
  7421.     <part>
  7422.         <id>24</id>
  7423.         <type>field</type>
  7424.         <visible> <true /> </visible>
  7425.         <dontWrap> <false /> </dontWrap>
  7426.         <dontSearch> <false /> </dontSearch>
  7427.         <sharedText> <false /> </sharedText>
  7428.         <fixedLineHeight> <true /> </fixedLineHeight>
  7429.         <autoTab> <true /> </autoTab>
  7430.         <lockText> <false /> </lockText>
  7431.         <rect>
  7432.             <left>233</left>
  7433.             <top>322</top>
  7434.             <right>415</right>
  7435.             <bottom>341</bottom>
  7436.         </rect>
  7437.         <style>transparent</style>
  7438.         <autoSelect> <false /> </autoSelect>
  7439.         <showLines> <true /> </showLines>
  7440.         <wideMargins> <false /> </wideMargins>
  7441.         <multipleLines> <false /> </multipleLines>
  7442.         <reservedFamily> 0 </reservedFamily>
  7443.         <titleWidth>0</titleWidth>
  7444.         <icon>0</icon>
  7445.         <textAlign>left</textAlign>
  7446.         <font>Geneva</font>
  7447.         <textSize>12</textSize>
  7448.         <textStyle>plain</textStyle>
  7449.         <textHeight>16</textHeight>
  7450.         <name>EMailAddr1</name>
  7451.         <script></script>
  7452.     </part>
  7453.     <part>
  7454.         <id>26</id>
  7455.         <type>field</type>
  7456.         <visible> <true /> </visible>
  7457.         <dontWrap> <false /> </dontWrap>
  7458.         <dontSearch> <false /> </dontSearch>
  7459.         <sharedText> <false /> </sharedText>
  7460.         <fixedLineHeight> <true /> </fixedLineHeight>
  7461.         <autoTab> <true /> </autoTab>
  7462.         <lockText> <false /> </lockText>
  7463.         <rect>
  7464.             <left>68</left>
  7465.             <top>340</top>
  7466.             <right>225</right>
  7467.             <bottom>359</bottom>
  7468.         </rect>
  7469.         <style>transparent</style>
  7470.         <autoSelect> <false /> </autoSelect>
  7471.         <showLines> <true /> </showLines>
  7472.         <wideMargins> <false /> </wideMargins>
  7473.         <multipleLines> <false /> </multipleLines>
  7474.         <reservedFamily> 0 </reservedFamily>
  7475.         <titleWidth>0</titleWidth>
  7476.         <icon>0</icon>
  7477.         <textAlign>left</textAlign>
  7478.         <font>Geneva</font>
  7479.         <textSize>12</textSize>
  7480.         <textStyle>plain</textStyle>
  7481.         <textHeight>16</textHeight>
  7482.         <name>EMailServ2</name>
  7483.         <script></script>
  7484.     </part>
  7485.     <part>
  7486.         <id>29</id>
  7487.         <type>field</type>
  7488.         <visible> <true /> </visible>
  7489.         <dontWrap> <false /> </dontWrap>
  7490.         <dontSearch> <false /> </dontSearch>
  7491.         <sharedText> <false /> </sharedText>
  7492.         <fixedLineHeight> <true /> </fixedLineHeight>
  7493.         <autoTab> <true /> </autoTab>
  7494.         <lockText> <false /> </lockText>
  7495.         <rect>
  7496.             <left>233</left>
  7497.             <top>340</top>
  7498.             <right>414</right>
  7499.             <bottom>359</bottom>
  7500.         </rect>
  7501.         <style>transparent</style>
  7502.         <autoSelect> <false /> </autoSelect>
  7503.         <showLines> <true /> </showLines>
  7504.         <wideMargins> <false /> </wideMargins>
  7505.         <multipleLines> <false /> </multipleLines>
  7506.         <reservedFamily> 0 </reservedFamily>
  7507.         <titleWidth>0</titleWidth>
  7508.         <icon>0</icon>
  7509.         <textAlign>left</textAlign>
  7510.         <font>Geneva</font>
  7511.         <textSize>12</textSize>
  7512.         <textStyle>plain</textStyle>
  7513.         <textHeight>16</textHeight>
  7514.         <name>EMailAddr2</name>
  7515.         <script></script>
  7516.     </part>
  7517.     <part>
  7518.         <id>27</id>
  7519.         <type>field</type>
  7520.         <visible> <true /> </visible>
  7521.         <dontWrap> <false /> </dontWrap>
  7522.         <dontSearch> <false /> </dontSearch>
  7523.         <sharedText> <false /> </sharedText>
  7524.         <fixedLineHeight> <true /> </fixedLineHeight>
  7525.         <autoTab> <true /> </autoTab>
  7526.         <lockText> <false /> </lockText>
  7527.         <rect>
  7528.             <left>68</left>
  7529.             <top>359</top>
  7530.             <right>225</right>
  7531.             <bottom>378</bottom>
  7532.         </rect>
  7533.         <style>transparent</style>
  7534.         <autoSelect> <false /> </autoSelect>
  7535.         <showLines> <true /> </showLines>
  7536.         <wideMargins> <false /> </wideMargins>
  7537.         <multipleLines> <false /> </multipleLines>
  7538.         <reservedFamily> 0 </reservedFamily>
  7539.         <titleWidth>0</titleWidth>
  7540.         <icon>0</icon>
  7541.         <textAlign>left</textAlign>
  7542.         <font>Geneva</font>
  7543.         <textSize>12</textSize>
  7544.         <textStyle>plain</textStyle>
  7545.         <textHeight>16</textHeight>
  7546.         <name>EMailServ3</name>
  7547.         <script></script>
  7548.     </part>
  7549.     <part>
  7550.         <id>30</id>
  7551.         <type>field</type>
  7552.         <visible> <true /> </visible>
  7553.         <dontWrap> <false /> </dontWrap>
  7554.         <dontSearch> <false /> </dontSearch>
  7555.         <sharedText> <false /> </sharedText>
  7556.         <fixedLineHeight> <true /> </fixedLineHeight>
  7557.         <autoTab> <true /> </autoTab>
  7558.         <lockText> <false /> </lockText>
  7559.         <rect>
  7560.             <left>233</left>
  7561.             <top>360</top>
  7562.             <right>414</right>
  7563.             <bottom>379</bottom>
  7564.         </rect>
  7565.         <style>transparent</style>
  7566.         <autoSelect> <false /> </autoSelect>
  7567.         <showLines> <true /> </showLines>
  7568.         <wideMargins> <false /> </wideMargins>
  7569.         <multipleLines> <false /> </multipleLines>
  7570.         <reservedFamily> 0 </reservedFamily>
  7571.         <titleWidth>0</titleWidth>
  7572.         <icon>0</icon>
  7573.         <textAlign>left</textAlign>
  7574.         <font>Geneva</font>
  7575.         <textSize>12</textSize>
  7576.         <textStyle>plain</textStyle>
  7577.         <textHeight>16</textHeight>
  7578.         <name>EMailAddr3</name>
  7579.         <script></script>
  7580.     </part>
  7581.     <part>
  7582.         <id>34</id>
  7583.         <type>field</type>
  7584.         <visible> <true /> </visible>
  7585.         <dontWrap> <false /> </dontWrap>
  7586.         <dontSearch> <false /> </dontSearch>
  7587.         <sharedText> <false /> </sharedText>
  7588.         <fixedLineHeight> <true /> </fixedLineHeight>
  7589.         <autoTab> <true /> </autoTab>
  7590.         <lockText> <false /> </lockText>
  7591.         <rect>
  7592.             <left>201</left>
  7593.             <top>381</top>
  7594.             <right>414</right>
  7595.             <bottom>400</bottom>
  7596.         </rect>
  7597.         <style>transparent</style>
  7598.         <autoSelect> <false /> </autoSelect>
  7599.         <showLines> <true /> </showLines>
  7600.         <wideMargins> <false /> </wideMargins>
  7601.         <multipleLines> <false /> </multipleLines>
  7602.         <reservedFamily> 0 </reservedFamily>
  7603.         <titleWidth>0</titleWidth>
  7604.         <icon>0</icon>
  7605.         <textAlign>left</textAlign>
  7606.         <font>Geneva</font>
  7607.         <textSize>12</textSize>
  7608.         <textStyle>plain</textStyle>
  7609.         <textHeight>16</textHeight>
  7610.         <name>MacModel</name>
  7611.         <script>on openField
  7612. adjustScroll "0,394,422,449"
  7613. end openField</script>
  7614.     </part>
  7615.     <part>
  7616.         <id>52</id>
  7617.         <type>field</type>
  7618.         <visible> <true /> </visible>
  7619.         <dontWrap> <false /> </dontWrap>
  7620.         <dontSearch> <false /> </dontSearch>
  7621.         <sharedText> <false /> </sharedText>
  7622.         <fixedLineHeight> <true /> </fixedLineHeight>
  7623.         <autoTab> <true /> </autoTab>
  7624.         <lockText> <false /> </lockText>
  7625.         <rect>
  7626.             <left>221</left>
  7627.             <top>414</top>
  7628.             <right>415</right>
  7629.             <bottom>433</bottom>
  7630.         </rect>
  7631.         <style>transparent</style>
  7632.         <autoSelect> <false /> </autoSelect>
  7633.         <showLines> <true /> </showLines>
  7634.         <wideMargins> <false /> </wideMargins>
  7635.         <multipleLines> <false /> </multipleLines>
  7636.         <reservedFamily> 0 </reservedFamily>
  7637.         <titleWidth>0</titleWidth>
  7638.         <icon>0</icon>
  7639.         <textAlign>left</textAlign>
  7640.         <font>Geneva</font>
  7641.         <textSize>12</textSize>
  7642.         <textStyle>plain</textStyle>
  7643.         <textHeight>16</textHeight>
  7644.         <name>Memory</name>
  7645.         <script></script>
  7646.     </part>
  7647.     <part>
  7648.         <id>41</id>
  7649.         <type>field</type>
  7650.         <visible> <true /> </visible>
  7651.         <dontWrap> <false /> </dontWrap>
  7652.         <dontSearch> <false /> </dontSearch>
  7653.         <sharedText> <false /> </sharedText>
  7654.         <fixedLineHeight> <true /> </fixedLineHeight>
  7655.         <autoTab> <true /> </autoTab>
  7656.         <lockText> <false /> </lockText>
  7657.         <rect>
  7658.             <left>9</left>
  7659.             <top>464</top>
  7660.             <right>416</right>
  7661.             <bottom>515</bottom>
  7662.         </rect>
  7663.         <style>transparent</style>
  7664.         <autoSelect> <false /> </autoSelect>
  7665.         <showLines> <true /> </showLines>
  7666.         <wideMargins> <false /> </wideMargins>
  7667.         <multipleLines> <false /> </multipleLines>
  7668.         <reservedFamily> 0 </reservedFamily>
  7669.         <titleWidth>0</titleWidth>
  7670.         <icon>0</icon>
  7671.         <textAlign>left</textAlign>
  7672.         <font>Geneva</font>
  7673.         <textSize>9</textSize>
  7674.         <textStyle>plain</textStyle>
  7675.         <textHeight>12</textHeight>
  7676.         <name>Monitors</name>
  7677.         <script></script>
  7678.     </part>
  7679.     <part>
  7680.         <id>8</id>
  7681.         <type>field</type>
  7682.         <visible> <true /> </visible>
  7683.         <dontWrap> <false /> </dontWrap>
  7684.         <dontSearch> <false /> </dontSearch>
  7685.         <sharedText> <false /> </sharedText>
  7686.         <fixedLineHeight> <false /> </fixedLineHeight>
  7687.         <autoTab> <false /> </autoTab>
  7688.         <lockText> <true /> </lockText>
  7689.         <rect>
  7690.             <left>10</left>
  7691.             <top>47</top>
  7692.             <right>97</right>
  7693.             <bottom>69</bottom>
  7694.         </rect>
  7695.         <style>transparent</style>
  7696.         <autoSelect> <false /> </autoSelect>
  7697.         <showLines> <false /> </showLines>
  7698.         <wideMargins> <false /> </wideMargins>
  7699.         <multipleLines> <false /> </multipleLines>
  7700.         <reservedFamily> 0 </reservedFamily>
  7701.         <titleWidth>0</titleWidth>
  7702.         <icon>0</icon>
  7703.         <textAlign>left</textAlign>
  7704.         <font>Geneva</font>
  7705.         <textSize>12</textSize>
  7706.         <textStyle>plain</textStyle>
  7707.         <textHeight>16</textHeight>
  7708.         <name></name>
  7709.         <script></script>
  7710.     </part>
  7711.     <part>
  7712.         <id>10</id>
  7713.         <type>field</type>
  7714.         <visible> <true /> </visible>
  7715.         <dontWrap> <false /> </dontWrap>
  7716.         <dontSearch> <false /> </dontSearch>
  7717.         <sharedText> <false /> </sharedText>
  7718.         <fixedLineHeight> <false /> </fixedLineHeight>
  7719.         <autoTab> <false /> </autoTab>
  7720.         <lockText> <true /> </lockText>
  7721.         <rect>
  7722.             <left>9</left>
  7723.             <top>69</top>
  7724.             <right>99</right>
  7725.             <bottom>96</bottom>
  7726.         </rect>
  7727.         <style>transparent</style>
  7728.         <autoSelect> <false /> </autoSelect>
  7729.         <showLines> <false /> </showLines>
  7730.         <wideMargins> <false /> </wideMargins>
  7731.         <multipleLines> <false /> </multipleLines>
  7732.         <reservedFamily> 0 </reservedFamily>
  7733.         <titleWidth>0</titleWidth>
  7734.         <icon>0</icon>
  7735.         <textAlign>left</textAlign>
  7736.         <font>Geneva</font>
  7737.         <textSize>12</textSize>
  7738.         <textStyle>plain</textStyle>
  7739.         <textHeight>16</textHeight>
  7740.         <name></name>
  7741.         <script></script>
  7742.     </part>
  7743.     <part>
  7744.         <id>13</id>
  7745.         <type>field</type>
  7746.         <visible> <true /> </visible>
  7747.         <dontWrap> <false /> </dontWrap>
  7748.         <dontSearch> <false /> </dontSearch>
  7749.         <sharedText> <false /> </sharedText>
  7750.         <fixedLineHeight> <false /> </fixedLineHeight>
  7751.         <autoTab> <false /> </autoTab>
  7752.         <lockText> <true /> </lockText>
  7753.         <rect>
  7754.             <left>9</left>
  7755.             <top>125</top>
  7756.             <right>99</right>
  7757.             <bottom>152</bottom>
  7758.         </rect>
  7759.         <style>transparent</style>
  7760.         <autoSelect> <false /> </autoSelect>
  7761.         <showLines> <false /> </showLines>
  7762.         <wideMargins> <false /> </wideMargins>
  7763.         <multipleLines> <false /> </multipleLines>
  7764.         <reservedFamily> 0 </reservedFamily>
  7765.         <titleWidth>0</titleWidth>
  7766.         <icon>0</icon>
  7767.         <textAlign>left</textAlign>
  7768.         <font>Geneva</font>
  7769.         <textSize>12</textSize>
  7770.         <textStyle>plain</textStyle>
  7771.         <textHeight>16</textHeight>
  7772.         <name></name>
  7773.         <script></script>
  7774.     </part>
  7775.     <part>
  7776.         <id>16</id>
  7777.         <type>field</type>
  7778.         <visible> <true /> </visible>
  7779.         <dontWrap> <false /> </dontWrap>
  7780.         <dontSearch> <false /> </dontSearch>
  7781.         <sharedText> <false /> </sharedText>
  7782.         <fixedLineHeight> <false /> </fixedLineHeight>
  7783.         <autoTab> <false /> </autoTab>
  7784.         <lockText> <true /> </lockText>
  7785.         <rect>
  7786.             <left>9</left>
  7787.             <top>264</top>
  7788.             <right>380</right>
  7789.             <bottom>284</bottom>
  7790.         </rect>
  7791.         <style>transparent</style>
  7792.         <autoSelect> <false /> </autoSelect>
  7793.         <showLines> <false /> </showLines>
  7794.         <wideMargins> <false /> </wideMargins>
  7795.         <multipleLines> <false /> </multipleLines>
  7796.         <reservedFamily> 0 </reservedFamily>
  7797.         <titleWidth>0</titleWidth>
  7798.         <icon>0</icon>
  7799.         <textAlign>left</textAlign>
  7800.         <font>Geneva</font>
  7801.         <textSize>12</textSize>
  7802.         <textStyle>plain</textStyle>
  7803.         <textHeight>16</textHeight>
  7804.         <name></name>
  7805.         <script></script>
  7806.     </part>
  7807.     <part>
  7808.         <id>17</id>
  7809.         <type>field</type>
  7810.         <visible> <true /> </visible>
  7811.         <dontWrap> <false /> </dontWrap>
  7812.         <dontSearch> <false /> </dontSearch>
  7813.         <sharedText> <false /> </sharedText>
  7814.         <fixedLineHeight> <false /> </fixedLineHeight>
  7815.         <autoTab> <false /> </autoTab>
  7816.         <lockText> <true /> </lockText>
  7817.         <rect>
  7818.             <left>9</left>
  7819.             <top>213</top>
  7820.             <right>99</right>
  7821.             <bottom>231</bottom>
  7822.         </rect>
  7823.         <style>transparent</style>
  7824.         <autoSelect> <false /> </autoSelect>
  7825.         <showLines> <false /> </showLines>
  7826.         <wideMargins> <false /> </wideMargins>
  7827.         <multipleLines> <false /> </multipleLines>
  7828.         <reservedFamily> 0 </reservedFamily>
  7829.         <titleWidth>0</titleWidth>
  7830.         <icon>0</icon>
  7831.         <textAlign>left</textAlign>
  7832.         <font>Geneva</font>
  7833.         <textSize>12</textSize>
  7834.         <textStyle>plain</textStyle>
  7835.         <textHeight>16</textHeight>
  7836.         <name></name>
  7837.         <script></script>
  7838.     </part>
  7839.     <part>
  7840.         <id>19</id>
  7841.         <type>field</type>
  7842.         <visible> <true /> </visible>
  7843.         <dontWrap> <false /> </dontWrap>
  7844.         <dontSearch> <false /> </dontSearch>
  7845.         <sharedText> <false /> </sharedText>
  7846.         <fixedLineHeight> <false /> </fixedLineHeight>
  7847.         <autoTab> <false /> </autoTab>
  7848.         <lockText> <true /> </lockText>
  7849.         <rect>
  7850.             <left>9</left>
  7851.             <top>238</top>
  7852.             <right>99</right>
  7853.             <bottom>259</bottom>
  7854.         </rect>
  7855.         <style>transparent</style>
  7856.         <autoSelect> <false /> </autoSelect>
  7857.         <showLines> <false /> </showLines>
  7858.         <wideMargins> <false /> </wideMargins>
  7859.         <multipleLines> <false /> </multipleLines>
  7860.         <reservedFamily> 0 </reservedFamily>
  7861.         <titleWidth>0</titleWidth>
  7862.         <icon>0</icon>
  7863.         <textAlign>left</textAlign>
  7864.         <font>Geneva</font>
  7865.         <textSize>12</textSize>
  7866.         <textStyle>plain</textStyle>
  7867.         <textHeight>16</textHeight>
  7868.         <name></name>
  7869.         <script></script>
  7870.     </part>
  7871.     <part>
  7872.         <id>82</id>
  7873.         <type>field</type>
  7874.         <visible> <true /> </visible>
  7875.         <dontWrap> <false /> </dontWrap>
  7876.         <dontSearch> <false /> </dontSearch>
  7877.         <sharedText> <false /> </sharedText>
  7878.         <fixedLineHeight> <false /> </fixedLineHeight>
  7879.         <autoTab> <false /> </autoTab>
  7880.         <lockText> <false /> </lockText>
  7881.         <rect>
  7882.             <left>7</left>
  7883.             <top>518</top>
  7884.             <right>441</right>
  7885.             <bottom>643</bottom>
  7886.         </rect>
  7887.         <style>shadow</style>
  7888.         <autoSelect> <false /> </autoSelect>
  7889.         <showLines> <false /> </showLines>
  7890.         <wideMargins> <false /> </wideMargins>
  7891.         <multipleLines> <false /> </multipleLines>
  7892.         <reservedFamily> 0 </reservedFamily>
  7893.         <titleWidth>0</titleWidth>
  7894.         <icon>0</icon>
  7895.         <textAlign>left</textAlign>
  7896.         <font>Geneva</font>
  7897.         <textSize>12</textSize>
  7898.         <textStyle>plain</textStyle>
  7899.         <textHeight>16</textHeight>
  7900.         <name></name>
  7901.         <script></script>
  7902.     </part>
  7903.     <part>
  7904.         <id>21</id>
  7905.         <type>field</type>
  7906.         <visible> <true /> </visible>
  7907.         <dontWrap> <false /> </dontWrap>
  7908.         <dontSearch> <false /> </dontSearch>
  7909.         <sharedText> <false /> </sharedText>
  7910.         <fixedLineHeight> <false /> </fixedLineHeight>
  7911.         <autoTab> <false /> </autoTab>
  7912.         <lockText> <true /> </lockText>
  7913.         <rect>
  7914.             <left>72</left>
  7915.             <top>286</top>
  7916.             <right>224</right>
  7917.             <bottom>315</bottom>
  7918.         </rect>
  7919.         <style>transparent</style>
  7920.         <autoSelect> <false /> </autoSelect>
  7921.         <showLines> <false /> </showLines>
  7922.         <wideMargins> <false /> </wideMargins>
  7923.         <multipleLines> <false /> </multipleLines>
  7924.         <reservedFamily> 0 </reservedFamily>
  7925.         <titleWidth>0</titleWidth>
  7926.         <icon>0</icon>
  7927.         <textAlign>left</textAlign>
  7928.         <font>Geneva</font>
  7929.         <textSize>9</textSize>
  7930.         <textStyle>plain</textStyle>
  7931.         <textHeight>12</textHeight>
  7932.         <name></name>
  7933.         <script></script>
  7934.     </part>
  7935.     <part>
  7936.         <id>22</id>
  7937.         <type>field</type>
  7938.         <visible> <true /> </visible>
  7939.         <dontWrap> <false /> </dontWrap>
  7940.         <dontSearch> <false /> </dontSearch>
  7941.         <sharedText> <false /> </sharedText>
  7942.         <fixedLineHeight> <false /> </fixedLineHeight>
  7943.         <autoTab> <false /> </autoTab>
  7944.         <lockText> <true /> </lockText>
  7945.         <rect>
  7946.             <left>273</left>
  7947.             <top>291</top>
  7948.             <right>352</right>
  7949.             <bottom>311</bottom>
  7950.         </rect>
  7951.         <style>transparent</style>
  7952.         <autoSelect> <false /> </autoSelect>
  7953.         <showLines> <false /> </showLines>
  7954.         <wideMargins> <false /> </wideMargins>
  7955.         <multipleLines> <false /> </multipleLines>
  7956.         <reservedFamily> 0 </reservedFamily>
  7957.         <titleWidth>0</titleWidth>
  7958.         <icon>0</icon>
  7959.         <textAlign>left</textAlign>
  7960.         <font>Geneva</font>
  7961.         <textSize>9</textSize>
  7962.         <textStyle>plain</textStyle>
  7963.         <textHeight>12</textHeight>
  7964.         <name></name>
  7965.         <script></script>
  7966.     </part>
  7967.     <part>
  7968.         <id>23</id>
  7969.         <type>field</type>
  7970.         <visible> <true /> </visible>
  7971.         <dontWrap> <false /> </dontWrap>
  7972.         <dontSearch> <false /> </dontSearch>
  7973.         <sharedText> <false /> </sharedText>
  7974.         <fixedLineHeight> <true /> </fixedLineHeight>
  7975.         <autoTab> <false /> </autoTab>
  7976.         <lockText> <true /> </lockText>
  7977.         <rect>
  7978.             <left>13</left>
  7979.             <top>320</top>
  7980.             <right>61</right>
  7981.             <bottom>382</bottom>
  7982.         </rect>
  7983.         <style>transparent</style>
  7984.         <autoSelect> <false /> </autoSelect>
  7985.         <showLines> <false /> </showLines>
  7986.         <wideMargins> <false /> </wideMargins>
  7987.         <multipleLines> <false /> </multipleLines>
  7988.         <reservedFamily> 0 </reservedFamily>
  7989.         <titleWidth>0</titleWidth>
  7990.         <icon>0</icon>
  7991.         <textAlign>right</textAlign>
  7992.         <font>Geneva</font>
  7993.         <textSize>12</textSize>
  7994.         <textStyle>plain</textStyle>
  7995.         <textHeight>18</textHeight>
  7996.         <name></name>
  7997.         <script></script>
  7998.     </part>
  7999.     <part>
  8000.         <id>33</id>
  8001.         <type>field</type>
  8002.         <visible> <true /> </visible>
  8003.         <dontWrap> <false /> </dontWrap>
  8004.         <dontSearch> <false /> </dontSearch>
  8005.         <sharedText> <false /> </sharedText>
  8006.         <fixedLineHeight> <false /> </fixedLineHeight>
  8007.         <autoTab> <false /> </autoTab>
  8008.         <lockText> <true /> </lockText>
  8009.         <rect>
  8010.             <left>9</left>
  8011.             <top>381</top>
  8012.             <right>195</right>
  8013.             <bottom>401</bottom>
  8014.         </rect>
  8015.         <style>transparent</style>
  8016.         <autoSelect> <false /> </autoSelect>
  8017.         <showLines> <false /> </showLines>
  8018.         <wideMargins> <false /> </wideMargins>
  8019.         <multipleLines> <false /> </multipleLines>
  8020.         <reservedFamily> 0 </reservedFamily>
  8021.         <titleWidth>0</titleWidth>
  8022.         <icon>0</icon>
  8023.         <textAlign>left</textAlign>
  8024.         <font>Geneva</font>
  8025.         <textSize>12</textSize>
  8026.         <textStyle>plain</textStyle>
  8027.         <textHeight>16</textHeight>
  8028.         <name></name>
  8029.         <script></script>
  8030.     </part>
  8031.     <part>
  8032.         <id>35</id>
  8033.         <type>button</type>
  8034.         <visible> <true /> </visible>
  8035.         <reserved5> 0 </reserved5>
  8036.         <reserved4> 0 </reserved4>
  8037.         <reserved3> 0 </reserved3>
  8038.         <reserved2> 0 </reserved2>
  8039.         <reserved1> 0 </reserved1>
  8040.         <enabled> <true /> </enabled>
  8041.         <rect>
  8042.             <left>15</left>
  8043.             <top>398</top>
  8044.             <right>86</right>
  8045.             <bottom>414</bottom>
  8046.         </rect>
  8047.         <style>radiobutton</style>
  8048.         <showName> <true /> </showName>
  8049.         <highlight> <false /> </highlight>
  8050.         <autoHighlight> <true /> </autoHighlight>
  8051.         <sharedHighlight> <true /> </sharedHighlight>
  8052.         <family>0</family>
  8053.         <titleWidth>0</titleWidth>
  8054.         <icon>0</icon>
  8055.         <textAlign>center</textAlign>
  8056.         <font>Geneva</font>
  8057.         <textSize>9</textSize>
  8058.         <textStyle>bold</textStyle>
  8059.         <name>System 6</name>
  8060.         <script>on mouseUp
  8061. set the hilite of button "System 7" to false
  8062. end mouseUp</script>
  8063.     </part>
  8064.     <part>
  8065.         <id>36</id>
  8066.         <type>button</type>
  8067.         <visible> <true /> </visible>
  8068.         <reserved5> 0 </reserved5>
  8069.         <reserved4> 0 </reserved4>
  8070.         <reserved3> 0 </reserved3>
  8071.         <reserved2> 0 </reserved2>
  8072.         <reserved1> 0 </reserved1>
  8073.         <enabled> <true /> </enabled>
  8074.         <rect>
  8075.             <left>100</left>
  8076.             <top>398</top>
  8077.             <right>186</right>
  8078.             <bottom>414</bottom>
  8079.         </rect>
  8080.         <style>radiobutton</style>
  8081.         <showName> <true /> </showName>
  8082.         <highlight> <true /> </highlight>
  8083.         <autoHighlight> <true /> </autoHighlight>
  8084.         <sharedHighlight> <true /> </sharedHighlight>
  8085.         <family>0</family>
  8086.         <titleWidth>0</titleWidth>
  8087.         <icon>0</icon>
  8088.         <textAlign>center</textAlign>
  8089.         <font>Geneva</font>
  8090.         <textSize>9</textSize>
  8091.         <textStyle>bold</textStyle>
  8092.         <name>System 7</name>
  8093.         <script>on mouseUp
  8094. set the hilite of button "System 6" to false
  8095.  
  8096. end mouseUp</script>
  8097.     </part>
  8098.     <part>
  8099.         <id>37</id>
  8100.         <type>button</type>
  8101.         <visible> <true /> </visible>
  8102.         <reserved5> 0 </reserved5>
  8103.         <reserved4> 0 </reserved4>
  8104.         <reserved3> 0 </reserved3>
  8105.         <reserved2> 0 </reserved2>
  8106.         <reserved1> 0 </reserved1>
  8107.         <enabled> <true /> </enabled>
  8108.         <rect>
  8109.             <left>210</left>
  8110.             <top>398</top>
  8111.             <right>344</right>
  8112.             <bottom>414</bottom>
  8113.         </rect>
  8114.         <style>checkbox</style>
  8115.         <showName> <true /> </showName>
  8116.         <highlight> <false /> </highlight>
  8117.         <autoHighlight> <true /> </autoHighlight>
  8118.         <sharedHighlight> <true /> </sharedHighlight>
  8119.         <family>0</family>
  8120.         <titleWidth>0</titleWidth>
  8121.         <icon>0</icon>
  8122.         <textAlign>center</textAlign>
  8123.         <font>Geneva</font>
  8124.         <textSize>9</textSize>
  8125.         <textStyle>bold</textStyle>
  8126.         <name>32-Bit QuickDraw</name>
  8127.         <script></script>
  8128.     </part>
  8129.     <part>
  8130.         <id>38</id>
  8131.         <type>field</type>
  8132.         <visible> <true /> </visible>
  8133.         <dontWrap> <false /> </dontWrap>
  8134.         <dontSearch> <false /> </dontSearch>
  8135.         <sharedText> <false /> </sharedText>
  8136.         <fixedLineHeight> <false /> </fixedLineHeight>
  8137.         <autoTab> <false /> </autoTab>
  8138.         <lockText> <true /> </lockText>
  8139.         <rect>
  8140.             <left>9</left>
  8141.             <top>433</top>
  8142.             <right>413</right>
  8143.             <bottom>465</bottom>
  8144.         </rect>
  8145.         <style>transparent</style>
  8146.         <autoSelect> <false /> </autoSelect>
  8147.         <showLines> <false /> </showLines>
  8148.         <wideMargins> <false /> </wideMargins>
  8149.         <multipleLines> <false /> </multipleLines>
  8150.         <reservedFamily> 0 </reservedFamily>
  8151.         <titleWidth>0</titleWidth>
  8152.         <icon>0</icon>
  8153.         <textAlign>left</textAlign>
  8154.         <font>Geneva</font>
  8155.         <textSize>12</textSize>
  8156.         <textStyle>plain</textStyle>
  8157.         <textHeight>16</textHeight>
  8158.         <name></name>
  8159.         <script></script>
  8160.     </part>
  8161.     <part>
  8162.         <id>39</id>
  8163.         <type>field</type>
  8164.         <visible> <true /> </visible>
  8165.         <dontWrap> <false /> </dontWrap>
  8166.         <dontSearch> <false /> </dontSearch>
  8167.         <sharedText> <false /> </sharedText>
  8168.         <fixedLineHeight> <false /> </fixedLineHeight>
  8169.         <autoTab> <false /> </autoTab>
  8170.         <lockText> <true /> </lockText>
  8171.         <rect>
  8172.             <left>9</left>
  8173.             <top>414</top>
  8174.             <right>219</right>
  8175.             <bottom>434</bottom>
  8176.         </rect>
  8177.         <style>transparent</style>
  8178.         <autoSelect> <false /> </autoSelect>
  8179.         <showLines> <false /> </showLines>
  8180.         <wideMargins> <false /> </wideMargins>
  8181.         <multipleLines> <false /> </multipleLines>
  8182.         <reservedFamily> 0 </reservedFamily>
  8183.         <titleWidth>0</titleWidth>
  8184.         <icon>0</icon>
  8185.         <textAlign>left</textAlign>
  8186.         <font>Geneva</font>
  8187.         <textSize>12</textSize>
  8188.         <textStyle>plain</textStyle>
  8189.         <textHeight>16</textHeight>
  8190.         <name></name>
  8191.         <script></script>
  8192.     </part>
  8193.     <part>
  8194.         <id>58</id>
  8195.         <type>field</type>
  8196.         <visible> <true /> </visible>
  8197.         <dontWrap> <false /> </dontWrap>
  8198.         <dontSearch> <false /> </dontSearch>
  8199.         <sharedText> <false /> </sharedText>
  8200.         <fixedLineHeight> <true /> </fixedLineHeight>
  8201.         <autoTab> <false /> </autoTab>
  8202.         <lockText> <true /> </lockText>
  8203.         <rect>
  8204.             <left>57</left>
  8205.             <top>523</top>
  8206.             <right>300</right>
  8207.             <bottom>555</bottom>
  8208.         </rect>
  8209.         <style>transparent</style>
  8210.         <autoSelect> <false /> </autoSelect>
  8211.         <showLines> <false /> </showLines>
  8212.         <wideMargins> <true /> </wideMargins>
  8213.         <multipleLines> <false /> </multipleLines>
  8214.         <reservedFamily> 0 </reservedFamily>
  8215.         <titleWidth>0</titleWidth>
  8216.         <icon>0</icon>
  8217.         <textAlign>left</textAlign>
  8218.         <font>Geneva</font>
  8219.         <textSize>12</textSize>
  8220.         <textStyle>plain</textStyle>
  8221.         <textHeight>12</textHeight>
  8222.         <name>DiskPrice</name>
  8223.         <script></script>
  8224.     </part>
  8225.     <part>
  8226.         <id>62</id>
  8227.         <type>field</type>
  8228.         <visible> <true /> </visible>
  8229.         <dontWrap> <false /> </dontWrap>
  8230.         <dontSearch> <false /> </dontSearch>
  8231.         <sharedText> <false /> </sharedText>
  8232.         <fixedLineHeight> <true /> </fixedLineHeight>
  8233.         <autoTab> <false /> </autoTab>
  8234.         <lockText> <true /> </lockText>
  8235.         <rect>
  8236.             <left>340</left>
  8237.             <top>523</top>
  8238.             <right>430</right>
  8239.             <bottom>543</bottom>
  8240.         </rect>
  8241.         <style>transparent</style>
  8242.         <autoSelect> <false /> </autoSelect>
  8243.         <showLines> <false /> </showLines>
  8244.         <wideMargins> <false /> </wideMargins>
  8245.         <multipleLines> <false /> </multipleLines>
  8246.         <reservedFamily> 0 </reservedFamily>
  8247.         <titleWidth>0</titleWidth>
  8248.         <icon>0</icon>
  8249.         <textAlign>right</textAlign>
  8250.         <font>Geneva</font>
  8251.         <textSize>12</textSize>
  8252.         <textStyle>plain</textStyle>
  8253.         <textHeight>16</textHeight>
  8254.         <name>DiskAmount</name>
  8255.         <script></script>
  8256.     </part>
  8257.     <part>
  8258.         <id>65</id>
  8259.         <type>field</type>
  8260.         <visible> <true /> </visible>
  8261.         <dontWrap> <false /> </dontWrap>
  8262.         <dontSearch> <false /> </dontSearch>
  8263.         <sharedText> <false /> </sharedText>
  8264.         <fixedLineHeight> <false /> </fixedLineHeight>
  8265.         <autoTab> <false /> </autoTab>
  8266.         <lockText> <true /> </lockText>
  8267.         <rect>
  8268.             <left>18</left>
  8269.             <top>653</top>
  8270.             <right>237</right>
  8271.             <bottom>670</bottom>
  8272.         </rect>
  8273.         <style>transparent</style>
  8274.         <autoSelect> <false /> </autoSelect>
  8275.         <showLines> <false /> </showLines>
  8276.         <wideMargins> <false /> </wideMargins>
  8277.         <multipleLines> <false /> </multipleLines>
  8278.         <reservedFamily> 0 </reservedFamily>
  8279.         <titleWidth>0</titleWidth>
  8280.         <icon>0</icon>
  8281.         <textAlign>left</textAlign>
  8282.         <font>Geneva</font>
  8283.         <textSize>9</textSize>
  8284.         <textStyle>plain</textStyle>
  8285.         <textHeight>12</textHeight>
  8286.         <name></name>
  8287.         <script></script>
  8288.     </part>
  8289.     <part>
  8290.         <id>64</id>
  8291.         <type>field</type>
  8292.         <visible> <true /> </visible>
  8293.         <dontWrap> <false /> </dontWrap>
  8294.         <dontSearch> <false /> </dontSearch>
  8295.         <sharedText> <false /> </sharedText>
  8296.         <fixedLineHeight> <false /> </fixedLineHeight>
  8297.         <autoTab> <false /> </autoTab>
  8298.         <lockText> <true /> </lockText>
  8299.         <rect>
  8300.             <left>18</left>
  8301.             <top>669</top>
  8302.             <right>214</right>
  8303.             <bottom>720</bottom>
  8304.         </rect>
  8305.         <style>transparent</style>
  8306.         <autoSelect> <false /> </autoSelect>
  8307.         <showLines> <false /> </showLines>
  8308.         <wideMargins> <false /> </wideMargins>
  8309.         <multipleLines> <false /> </multipleLines>
  8310.         <reservedFamily> 0 </reservedFamily>
  8311.         <titleWidth>0</titleWidth>
  8312.         <icon>0</icon>
  8313.         <textAlign>left</textAlign>
  8314.         <font>Geneva</font>
  8315.         <textSize>9</textSize>
  8316.         <textStyle>plain</textStyle>
  8317.         <textHeight>12</textHeight>
  8318.         <name></name>
  8319.         <script></script>
  8320.     </part>
  8321.     <part>
  8322.         <id>66</id>
  8323.         <type>field</type>
  8324.         <visible> <true /> </visible>
  8325.         <dontWrap> <false /> </dontWrap>
  8326.         <dontSearch> <false /> </dontSearch>
  8327.         <sharedText> <false /> </sharedText>
  8328.         <fixedLineHeight> <true /> </fixedLineHeight>
  8329.         <autoTab> <true /> </autoTab>
  8330.         <lockText> <false /> </lockText>
  8331.         <rect>
  8332.             <left>14</left>
  8333.             <top>523</top>
  8334.             <right>57</right>
  8335.             <bottom>543</bottom>
  8336.         </rect>
  8337.         <style>transparent</style>
  8338.         <autoSelect> <false /> </autoSelect>
  8339.         <showLines> <true /> </showLines>
  8340.         <wideMargins> <false /> </wideMargins>
  8341.         <multipleLines> <false /> </multipleLines>
  8342.         <reservedFamily> 0 </reservedFamily>
  8343.         <titleWidth>0</titleWidth>
  8344.         <icon>0</icon>
  8345.         <textAlign>left</textAlign>
  8346.         <font>Geneva</font>
  8347.         <textSize>12</textSize>
  8348.         <textStyle>plain</textStyle>
  8349.         <textHeight>16</textHeight>
  8350.         <name>NumDiskCopies</name>
  8351.         <script>on closeField
  8352. calcAmount
  8353. fixPlural "NumDiskCopies","DiskPrice"
  8354. end closeField
  8355.  
  8356. on openField
  8357. adjustScroll "0,515,448,720"
  8358. end openField</script>
  8359.     </part>
  8360.     <part>
  8361.         <id>67</id>
  8362.         <type>field</type>
  8363.         <visible> <true /> </visible>
  8364.         <dontWrap> <false /> </dontWrap>
  8365.         <dontSearch> <false /> </dontSearch>
  8366.         <sharedText> <false /> </sharedText>
  8367.         <fixedLineHeight> <true /> </fixedLineHeight>
  8368.         <autoTab> <true /> </autoTab>
  8369.         <lockText> <false /> </lockText>
  8370.         <rect>
  8371.             <left>15</left>
  8372.             <top>557</top>
  8373.             <right>58</right>
  8374.             <bottom>577</bottom>
  8375.         </rect>
  8376.         <style>transparent</style>
  8377.         <autoSelect> <false /> </autoSelect>
  8378.         <showLines> <true /> </showLines>
  8379.         <wideMargins> <false /> </wideMargins>
  8380.         <multipleLines> <false /> </multipleLines>
  8381.         <reservedFamily> 0 </reservedFamily>
  8382.         <titleWidth>0</titleWidth>
  8383.         <icon>0</icon>
  8384.         <textAlign>left</textAlign>
  8385.         <font>Geneva</font>
  8386.         <textSize>12</textSize>
  8387.         <textStyle>plain</textStyle>
  8388.         <textHeight>16</textHeight>
  8389.         <name>NumManCopies</name>
  8390.         <script>on closeField
  8391. calcAmount
  8392. fixPlural "NumManCopies","ManPrice"
  8393. end closeField
  8394.  
  8395. on openField
  8396. adjustScroll "0,515,448,720"
  8397. end openField</script>
  8398.     </part>
  8399.     <part>
  8400.         <id>68</id>
  8401.         <type>field</type>
  8402.         <visible> <true /> </visible>
  8403.         <dontWrap> <false /> </dontWrap>
  8404.         <dontSearch> <false /> </dontSearch>
  8405.         <sharedText> <false /> </sharedText>
  8406.         <fixedLineHeight> <true /> </fixedLineHeight>
  8407.         <autoTab> <false /> </autoTab>
  8408.         <lockText> <true /> </lockText>
  8409.         <rect>
  8410.             <left>340</left>
  8411.             <top>557</top>
  8412.             <right>430</right>
  8413.             <bottom>577</bottom>
  8414.         </rect>
  8415.         <style>transparent</style>
  8416.         <autoSelect> <false /> </autoSelect>
  8417.         <showLines> <false /> </showLines>
  8418.         <wideMargins> <false /> </wideMargins>
  8419.         <multipleLines> <false /> </multipleLines>
  8420.         <reservedFamily> 0 </reservedFamily>
  8421.         <titleWidth>0</titleWidth>
  8422.         <icon>0</icon>
  8423.         <textAlign>right</textAlign>
  8424.         <font>Geneva</font>
  8425.         <textSize>12</textSize>
  8426.         <textStyle>plain</textStyle>
  8427.         <textHeight>16</textHeight>
  8428.         <name>ManAmount</name>
  8429.         <script></script>
  8430.     </part>
  8431.     <part>
  8432.         <id>70</id>
  8433.         <type>field</type>
  8434.         <visible> <true /> </visible>
  8435.         <dontWrap> <false /> </dontWrap>
  8436.         <dontSearch> <false /> </dontSearch>
  8437.         <sharedText> <false /> </sharedText>
  8438.         <fixedLineHeight> <true /> </fixedLineHeight>
  8439.         <autoTab> <false /> </autoTab>
  8440.         <lockText> <true /> </lockText>
  8441.         <rect>
  8442.             <left>58</left>
  8443.             <top>557</top>
  8444.             <right>325</right>
  8445.             <bottom>590</bottom>
  8446.         </rect>
  8447.         <style>transparent</style>
  8448.         <autoSelect> <false /> </autoSelect>
  8449.         <showLines> <false /> </showLines>
  8450.         <wideMargins> <true /> </wideMargins>
  8451.         <multipleLines> <false /> </multipleLines>
  8452.         <reservedFamily> 0 </reservedFamily>
  8453.         <titleWidth>0</titleWidth>
  8454.         <icon>0</icon>
  8455.         <textAlign>left</textAlign>
  8456.         <font>Geneva</font>
  8457.         <textSize>12</textSize>
  8458.         <textStyle>plain</textStyle>
  8459.         <textHeight>12</textHeight>
  8460.         <name>ManPrice</name>
  8461.         <script></script>
  8462.     </part>
  8463.     <part>
  8464.         <id>71</id>
  8465.         <type>button</type>
  8466.         <visible> <true /> </visible>
  8467.         <reserved5> 0 </reserved5>
  8468.         <reserved4> 0 </reserved4>
  8469.         <reserved3> 0 </reserved3>
  8470.         <reserved2> 0 </reserved2>
  8471.         <reserved1> 0 </reserved1>
  8472.         <enabled> <true /> </enabled>
  8473.         <rect>
  8474.             <left>18</left>
  8475.             <top>590</top>
  8476.             <right>139</right>
  8477.             <bottom>612</bottom>
  8478.         </rect>
  8479.         <style>checkbox</style>
  8480.         <showName> <true /> </showName>
  8481.         <highlight> <false /> </highlight>
  8482.         <autoHighlight> <true /> </autoHighlight>
  8483.         <sharedHighlight> <true /> </sharedHighlight>
  8484.         <family>0</family>
  8485.         <titleWidth>0</titleWidth>
  8486.         <icon>0</icon>
  8487.         <textAlign>center</textAlign>
  8488.         <font>Geneva</font>
  8489.         <textSize>9</textSize>
  8490.         <textStyle>bold</textStyle>
  8491.         <name>Canadian Resident</name>
  8492.         <script>on mouseUp
  8493. if not the hilite of me then
  8494. set the hilite of button "B.C. Resident" to false
  8495. end if
  8496. calcAmount
  8497. end mouseUp</script>
  8498.     </part>
  8499.     <part>
  8500.         <id>72</id>
  8501.         <type>button</type>
  8502.         <visible> <true /> </visible>
  8503.         <reserved5> 0 </reserved5>
  8504.         <reserved4> 0 </reserved4>
  8505.         <reserved3> 0 </reserved3>
  8506.         <reserved2> 0 </reserved2>
  8507.         <reserved1> 0 </reserved1>
  8508.         <enabled> <true /> </enabled>
  8509.         <rect>
  8510.             <left>141</left>
  8511.             <top>590</top>
  8512.             <right>234</right>
  8513.             <bottom>612</bottom>
  8514.         </rect>
  8515.         <style>checkbox</style>
  8516.         <showName> <true /> </showName>
  8517.         <highlight> <false /> </highlight>
  8518.         <autoHighlight> <true /> </autoHighlight>
  8519.         <sharedHighlight> <true /> </sharedHighlight>
  8520.         <family>0</family>
  8521.         <titleWidth>0</titleWidth>
  8522.         <icon>0</icon>
  8523.         <textAlign>center</textAlign>
  8524.         <font>Geneva</font>
  8525.         <textSize>9</textSize>
  8526.         <textStyle>bold</textStyle>
  8527.         <name>B.C. Resident</name>
  8528.         <script>on mouseUp
  8529. if the hilite of me is true then
  8530. set the hilite of button "Canadian Resident" to true
  8531. end if
  8532.  
  8533. calcAmount
  8534. end mouseUp</script>
  8535.     </part>
  8536.     <part>
  8537.         <id>73</id>
  8538.         <type>field</type>
  8539.         <visible> <true /> </visible>
  8540.         <dontWrap> <false /> </dontWrap>
  8541.         <dontSearch> <false /> </dontSearch>
  8542.         <sharedText> <false /> </sharedText>
  8543.         <fixedLineHeight> <true /> </fixedLineHeight>
  8544.         <autoTab> <false /> </autoTab>
  8545.         <lockText> <true /> </lockText>
  8546.         <rect>
  8547.             <left>69</left>
  8548.             <top>611</top>
  8549.             <right>124</right>
  8550.             <bottom>637</bottom>
  8551.         </rect>
  8552.         <style>transparent</style>
  8553.         <autoSelect> <false /> </autoSelect>
  8554.         <showLines> <false /> </showLines>
  8555.         <wideMargins> <false /> </wideMargins>
  8556.         <multipleLines> <false /> </multipleLines>
  8557.         <reservedFamily> 0 </reservedFamily>
  8558.         <titleWidth>0</titleWidth>
  8559.         <icon>0</icon>
  8560.         <textAlign>left</textAlign>
  8561.         <font>Geneva</font>
  8562.         <textSize>12</textSize>
  8563.         <textStyle>plain</textStyle>
  8564.         <textHeight>16</textHeight>
  8565.         <name>GST</name>
  8566.         <script>on mouseDown
  8567. set the hilite of button "Canadian Resident" to true
  8568. calcAmount
  8569. end mouseDown</script>
  8570.     </part>
  8571.     <part>
  8572.         <id>76</id>
  8573.         <type>field</type>
  8574.         <visible> <true /> </visible>
  8575.         <dontWrap> <false /> </dontWrap>
  8576.         <dontSearch> <false /> </dontSearch>
  8577.         <sharedText> <false /> </sharedText>
  8578.         <fixedLineHeight> <false /> </fixedLineHeight>
  8579.         <autoTab> <false /> </autoTab>
  8580.         <lockText> <true /> </lockText>
  8581.         <rect>
  8582.             <left>28</left>
  8583.             <top>611</top>
  8584.             <right>71</right>
  8585.             <bottom>637</bottom>
  8586.         </rect>
  8587.         <style>transparent</style>
  8588.         <autoSelect> <false /> </autoSelect>
  8589.         <showLines> <false /> </showLines>
  8590.         <wideMargins> <false /> </wideMargins>
  8591.         <multipleLines> <false /> </multipleLines>
  8592.         <reservedFamily> 0 </reservedFamily>
  8593.         <titleWidth>0</titleWidth>
  8594.         <icon>0</icon>
  8595.         <textAlign>left</textAlign>
  8596.         <font>Geneva</font>
  8597.         <textSize>12</textSize>
  8598.         <textStyle>plain</textStyle>
  8599.         <textHeight>16</textHeight>
  8600.         <name></name>
  8601.         <script></script>
  8602.     </part>
  8603.     <part>
  8604.         <id>77</id>
  8605.         <type>field</type>
  8606.         <visible> <true /> </visible>
  8607.         <dontWrap> <false /> </dontWrap>
  8608.         <dontSearch> <false /> </dontSearch>
  8609.         <sharedText> <false /> </sharedText>
  8610.         <fixedLineHeight> <false /> </fixedLineHeight>
  8611.         <autoTab> <false /> </autoTab>
  8612.         <lockText> <true /> </lockText>
  8613.         <rect>
  8614.             <left>143</left>
  8615.             <top>611</top>
  8616.             <right>200</right>
  8617.             <bottom>636</bottom>
  8618.         </rect>
  8619.         <style>transparent</style>
  8620.         <autoSelect> <false /> </autoSelect>
  8621.         <showLines> <false /> </showLines>
  8622.         <wideMargins> <false /> </wideMargins>
  8623.         <multipleLines> <false /> </multipleLines>
  8624.         <reservedFamily> 0 </reservedFamily>
  8625.         <titleWidth>0</titleWidth>
  8626.         <icon>0</icon>
  8627.         <textAlign>left</textAlign>
  8628.         <font>Geneva</font>
  8629.         <textSize>9</textSize>
  8630.         <textStyle>plain</textStyle>
  8631.         <textHeight>12</textHeight>
  8632.         <name></name>
  8633.         <script></script>
  8634.     </part>
  8635.     <part>
  8636.         <id>78</id>
  8637.         <type>field</type>
  8638.         <visible> <true /> </visible>
  8639.         <dontWrap> <false /> </dontWrap>
  8640.         <dontSearch> <false /> </dontSearch>
  8641.         <sharedText> <false /> </sharedText>
  8642.         <fixedLineHeight> <true /> </fixedLineHeight>
  8643.         <autoTab> <false /> </autoTab>
  8644.         <lockText> <true /> </lockText>
  8645.         <rect>
  8646.             <left>195</left>
  8647.             <top>611</top>
  8648.             <right>250</right>
  8649.             <bottom>637</bottom>
  8650.         </rect>
  8651.         <style>transparent</style>
  8652.         <autoSelect> <false /> </autoSelect>
  8653.         <showLines> <false /> </showLines>
  8654.         <wideMargins> <false /> </wideMargins>
  8655.         <multipleLines> <false /> </multipleLines>
  8656.         <reservedFamily> 0 </reservedFamily>
  8657.         <titleWidth>0</titleWidth>
  8658.         <icon>0</icon>
  8659.         <textAlign>left</textAlign>
  8660.         <font>Geneva</font>
  8661.         <textSize>12</textSize>
  8662.         <textStyle>plain</textStyle>
  8663.         <textHeight>16</textHeight>
  8664.         <name>PST</name>
  8665.         <script>on mouseDown
  8666. set the hilite of button "Canadian Resident" to true
  8667. set the hilite of button "B.C. Resident" to true
  8668. calcAmount
  8669. end mouseDown</script>
  8670.     </part>
  8671.     <part>
  8672.         <id>79</id>
  8673.         <type>field</type>
  8674.         <visible> <true /> </visible>
  8675.         <dontWrap> <false /> </dontWrap>
  8676.         <dontSearch> <false /> </dontSearch>
  8677.         <sharedText> <false /> </sharedText>
  8678.         <fixedLineHeight> <false /> </fixedLineHeight>
  8679.         <autoTab> <false /> </autoTab>
  8680.         <lockText> <true /> </lockText>
  8681.         <rect>
  8682.             <left>323</left>
  8683.             <top>681</top>
  8684.             <right>442</right>
  8685.             <bottom>716</bottom>
  8686.         </rect>
  8687.         <style>shadow</style>
  8688.         <autoSelect> <false /> </autoSelect>
  8689.         <showLines> <false /> </showLines>
  8690.         <wideMargins> <true /> </wideMargins>
  8691.         <multipleLines> <false /> </multipleLines>
  8692.         <reservedFamily> 0 </reservedFamily>
  8693.         <titleWidth>0</titleWidth>
  8694.         <icon>0</icon>
  8695.         <textAlign>left</textAlign>
  8696.         <font>Geneva</font>
  8697.         <textSize>9</textSize>
  8698.         <textStyle>plain</textStyle>
  8699.         <textHeight>12</textHeight>
  8700.         <name></name>
  8701.         <script></script>
  8702.     </part>
  8703.     <part>
  8704.         <id>80</id>
  8705.         <type>field</type>
  8706.         <visible> <true /> </visible>
  8707.         <dontWrap> <false /> </dontWrap>
  8708.         <dontSearch> <false /> </dontSearch>
  8709.         <sharedText> <false /> </sharedText>
  8710.         <fixedLineHeight> <false /> </fixedLineHeight>
  8711.         <autoTab> <false /> </autoTab>
  8712.         <lockText> <true /> </lockText>
  8713.         <rect>
  8714.             <left>261</left>
  8715.             <top>611</top>
  8716.             <right>344</right>
  8717.             <bottom>631</bottom>
  8718.         </rect>
  8719.         <style>transparent</style>
  8720.         <autoSelect> <false /> </autoSelect>
  8721.         <showLines> <false /> </showLines>
  8722.         <wideMargins> <false /> </wideMargins>
  8723.         <multipleLines> <false /> </multipleLines>
  8724.         <reservedFamily> 0 </reservedFamily>
  8725.         <titleWidth>0</titleWidth>
  8726.         <icon>0</icon>
  8727.         <textAlign>right</textAlign>
  8728.         <font>Chicago</font>
  8729.         <textSize>12</textSize>
  8730.         <textStyle>plain</textStyle>
  8731.         <textHeight>16</textHeight>
  8732.         <name></name>
  8733.         <script></script>
  8734.     </part>
  8735.     <part>
  8736.         <id>81</id>
  8737.         <type>field</type>
  8738.         <visible> <true /> </visible>
  8739.         <dontWrap> <false /> </dontWrap>
  8740.         <dontSearch> <false /> </dontSearch>
  8741.         <sharedText> <false /> </sharedText>
  8742.         <fixedLineHeight> <true /> </fixedLineHeight>
  8743.         <autoTab> <false /> </autoTab>
  8744.         <lockText> <true /> </lockText>
  8745.         <rect>
  8746.             <left>340</left>
  8747.             <top>611</top>
  8748.             <right>430</right>
  8749.             <bottom>631</bottom>
  8750.         </rect>
  8751.         <style>transparent</style>
  8752.         <autoSelect> <false /> </autoSelect>
  8753.         <showLines> <false /> </showLines>
  8754.         <wideMargins> <false /> </wideMargins>
  8755.         <multipleLines> <false /> </multipleLines>
  8756.         <reservedFamily> 0 </reservedFamily>
  8757.         <titleWidth>0</titleWidth>
  8758.         <icon>0</icon>
  8759.         <textAlign>right</textAlign>
  8760.         <font>Geneva</font>
  8761.         <textSize>12</textSize>
  8762.         <textStyle>plain</textStyle>
  8763.         <textHeight>16</textHeight>
  8764.         <name>Total</name>
  8765.         <script></script>
  8766.     </part>
  8767.     <content>
  8768.         <layer>background</layer>
  8769.         <id>1</id>
  8770.         <text>About HyperTint</text>
  8771.     </content>
  8772.     <content>
  8773.         <layer>card</layer>
  8774.         <id>8</id>
  8775.         <text>Name</text>
  8776.     </content>
  8777.     <content>
  8778.         <layer>card</layer>
  8779.         <id>10</id>
  8780.         <text>Company</text>
  8781.     </content>
  8782.     <content>
  8783.         <layer>card</layer>
  8784.         <id>13</id>
  8785.         <text>Address</text>
  8786.     </content>
  8787.     <content>
  8788.         <layer>card</layer>
  8789.         <id>16</id>
  8790.         <text><span class="style2">lectronic Mail Addresses</span><span class="style11">
  8791. </span></text>
  8792.     </content>
  8793.     <content>
  8794.         <layer>card</layer>
  8795.         <id>17</id>
  8796.         <text>Phone</text>
  8797.     </content>
  8798.     <content>
  8799.         <layer>card</layer>
  8800.         <id>19</id>
  8801.         <text>Fax</text>
  8802.     </content>
  8803.     <content>
  8804.         <layer>card</layer>
  8805.         <id>21</id>
  8806.         <text><span class="style9">-Mail Service</span><span class="style2">
  8807. (CompuServe, internet, etc.)
  8808. </span></text>
  8809.     </content>
  8810.     <content>
  8811.         <layer>card</layer>
  8812.         <id>22</id>
  8813.         <text><span class="style9">-Mail Address</span></text>
  8814.     </content>
  8815.     <content>
  8816.         <layer>card</layer>
  8817.         <id>23</id>
  8818.         <text><span class="style11">.
  8819. 2.
  8820. 3.
  8821. </span></text>
  8822.     </content>
  8823.     <content>
  8824.         <layer>card</layer>
  8825.         <id>33</id>
  8826.         <text>Which model of Macintosh?</text>
  8827.     </content>
  8828.     <content>
  8829.         <layer>card</layer>
  8830.         <id>38</id>
  8831.         <text><span class="style2">lease describe your monitors and video cards.</span><span class="style11">
  8832. Manufacturer, model, number of colours, resolution (eg. 640x480)</span></text>
  8833.     </content>
  8834.     <content>
  8835.         <layer>card</layer>
  8836.         <id>39</id>
  8837.         <text>How much memory is installed?</text>
  8838.     </content>
  8839.     <content>
  8840.         <layer>card</layer>
  8841.         <id>58</id>
  8842.         <text><span class="style2">opies of HyperTint @ US$35/copy:</span><span class="style13">
  8843.  </span><span class="style11">(Canadian residents:  CDN$40/copy)</span></text>
  8844.     </content>
  8845.     <content>
  8846.         <layer>background</layer>
  8847.         <id>5</id>
  8848.         <text>HyperTint Order Form</text>
  8849.     </content>
  8850.     <content>
  8851.         <layer>card</layer>
  8852.         <id>64</id>
  8853.         <text>Symplex Systems
  8854. #1703 - 4134 Maywood Street
  8855. Burnaby, B.C., Canada
  8856. V5H 4C9</text>
  8857.     </content>
  8858.     <content>
  8859.         <layer>card</layer>
  8860.         <id>65</id>
  8861.         <text>Please mail with check or money order to:</text>
  8862.     </content>
  8863.     <content>
  8864.         <layer>card</layer>
  8865.         <id>70</id>
  8866.         <text><span class="style2">opies of printed</span><span class="style11"> </span><span class="style2">manual @ US$12/copy:</span><span class="style11">
  8867. (Canadian residents:  CDN$14/copy)</span></text>
  8868.     </content>
  8869.     <content>
  8870.         <layer>card</layer>
  8871.         <id>76</id>
  8872.         <text>G.S.T:</text>
  8873.     </content>
  8874.     <content>
  8875.         <layer>card</layer>
  8876.         <id>77</id>
  8877.         <text>Provincial sales tax:</text>
  8878.     </content>
  8879.     <content>
  8880.         <layer>card</layer>
  8881.         <id>79</id>
  8882.         <text>GST Registration No.:
  8883. R127525095</text>
  8884.     </content>
  8885.     <content>
  8886.         <layer>card</layer>
  8887.         <id>80</id>
  8888.         <text>Total:</text>
  8889.     </content>
  8890.     <name>HyperTint Order Form</name>
  8891.     <script>on openField
  8892. adjustScroll the rect of the target
  8893. end openField
  8894.  
  8895. on openCard
  8896. fixPlural "NumDiskCopies","DiskPrice"
  8897. fixPlural "NumManCopies","ManPrice"
  8898. pass openCard
  8899. end openCard
  8900.  
  8901. on adjustScroll targetRect
  8902. put the scroll of the card window into scr
  8903. put item 1 of scr into windLeft
  8904. put item 2 of scr into windTop
  8905. put (item 1 of scr) + (the width of the card window) into windRight
  8906. put (item 2 of scr) + (the height of the card window) into windBottom
  8907.  
  8908. if item 1 of targetRect <= windLeft then
  8909. put item 1 of targetRect into item 1 of scr
  8910. else if item 3 of targetRect > windRight then
  8911. put (item 3 of targetRect) - the width of the card window┬¼
  8912. into item 1 of scr
  8913. end if
  8914.  
  8915. if item 2 of targetRect <= windTop then
  8916. put item 2 of targetRect into item 2 of scr
  8917. else if item 4 of targetRect > windBottom then
  8918. put (item 4 of targetRect) - the height of the card window┬¼
  8919. into item 2 of scr
  8920. end if
  8921.  
  8922. set the scroll of the card window to scr
  8923. end adjustScroll
  8924.  
  8925. function fetchIntField  fieldName
  8926. if card field fieldName is empty then
  8927. put 0 into intValue
  8928. else if card field fieldName is an integer┬¼
  8929. and card field fieldName >= 0 then
  8930. put card field fieldName into intValue
  8931. else
  8932. answer "An integer is required here."
  8933. select char 1 to 999 of card field fieldName
  8934. exit to HyperCard -- It's ugly, but it gets you there.
  8935. end if
  8936.  
  8937. return intValue
  8938. end fetchIntField
  8939.  
  8940. function fetchField  fieldName
  8941. -- Seeing as the user cannot enter values into these field,
  8942. -- validity checking is not required.
  8943. if card field fieldName is empty then
  8944. put 0 into fldValue
  8945. else if card field fieldName is a number then
  8946. put card field fieldName into fldValue
  8947. end if
  8948.  
  8949. return fldValue
  8950. end fetchField
  8951.  
  8952. on calcAmount
  8953. put the hilite of button "Canadian Resident" into OhCanada
  8954.  
  8955. set the numberFormat to "0.00"
  8956. get fetchIntField("NumDiskCopies")
  8957. if it is 0 then
  8958. put empty into card field "DiskAmount"
  8959. else
  8960. if OhCanada then
  8961. put it * 40 into card field "DiskAmount"
  8962. else
  8963. put it * 35 into card field "DiskAmount"
  8964. end if
  8965. end if
  8966.  
  8967.  
  8968. get fetchIntField("NumManCopies")
  8969. if it is 0 then
  8970. put empty into card field "ManAmount"
  8971. else
  8972. if OhCanada then
  8973. put it * 14 into card field "ManAmount"
  8974. else
  8975. put it * 12 into card field "ManAmount"
  8976. end if
  8977. end if
  8978.  
  8979. put fetchField("DiskAmount") + fetchField("ManAmount") into subtotal
  8980.  
  8981. if subtotal is 0 or not OhCanada then
  8982. put empty into card field "GST"
  8983. else
  8984. put subtotal * 0.07 into card field "GST"
  8985. end if
  8986.  
  8987. if subtotal is 0 or not the hilite of button "B.C. Resident" then
  8988. put empty into card field "PST"
  8989. else
  8990. put subtotal * 0.06 into card field "PST"
  8991. end if
  8992. get fetchField("DiskAmount") + fetchField("ManAmount")┬¼
  8993. + fetchField("GST") + fetchField("PST")
  8994. if it is 0 then
  8995. put empty into card field "Total"
  8996. else
  8997. put it into card field "Total"
  8998. end if
  8999.  
  9000. if subTotal is not 0 then
  9001. if OhCanada then
  9002. put "CDN$" before card field "Total"
  9003. else
  9004. put "US$" before card field "Total"
  9005. end if
  9006. end if
  9007. end calcAmount
  9008.  
  9009. on fixPlural  numFldName,PriceFldname
  9010. put card field numFldName into numCopies
  9011. if numCopies is empty or numCopies is not an integer┬¼
  9012. or numCopies is 0 or numCopies > 1 then
  9013. put "copies" into word 1 of card field PriceFldName
  9014. else
  9015. put "copy" into word 1 of card field PriceFldName
  9016. end if
  9017. end fixplural
  9018.  
  9019.  
  9020.  
  9021.  
  9022.  
  9023. on copyForm
  9024. repeat with i = 1 to the number of buttons
  9025. -- adjust the scroll so that it is correct.  Allow for
  9026. -- some margin because.
  9027. put the rect of button i into targetRect
  9028. subtract 10 from item 1 of targetRect
  9029. subtract 10 from item 2 of targetRect
  9030. add 10 to item 3 of targetRect
  9031. add 10 to item 4 of targetRect
  9032. adjustScroll targetRect
  9033. put the scroll of the card window into targetScroll
  9034.  
  9035. select button i
  9036. domenu "Copy button"
  9037.  
  9038. go card "HyperTint Order Form" of stack "HyperTint"
  9039. set the scroll of the card window to targetScroll
  9040. if the result is not empty then
  9041. answer the result
  9042. exit to HyperCard
  9043. end if
  9044.  
  9045. domenu "Paste button"
  9046.  
  9047. go card "HyperTint Order Form" of stack "HyperTint Demo"
  9048. if the result is not empty then
  9049. answer the result
  9050. exit to HyperCard
  9051. end if
  9052. end repeat
  9053.  
  9054. repeat with i = 1 to the number of card fields
  9055. put the rect of card field i into targetRect
  9056. subtract 10 from item 1 of targetRect
  9057. subtract 10 from item 2 of targetRect
  9058. add 10 to item 3 of targetRect
  9059. add 10 to item 4 of targetRect
  9060. adjustScroll targetRect
  9061. put the scroll of the card window into targetScroll
  9062.  
  9063. select card field i
  9064. domenu "Copy field"
  9065.  
  9066. go card "HyperTint Order Form" of stack "HyperTint"
  9067. set the scroll of the card window to targetScroll
  9068. if the result is not empty then
  9069. answer the result
  9070. exit to HyperCard
  9071. end if
  9072.  
  9073. --domenu "Paste field"
  9074. type "V" with commandKey,shiftKey
  9075.  
  9076. go card "HyperTint Order Form" of stack "HyperTint Demo"
  9077. if the result is not empty then
  9078. answer the result
  9079. exit to HyperCard
  9080. end if
  9081. end repeat
  9082.  
  9083. end copyform
  9084. </script>
  9085. </card>
  9086.  
  9087.  
  9088. card_29183.xml
  9089. <?xml version="1.0" encoding="utf-8" ?>
  9090. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  9091. <card>
  9092.     <id>29183</id>
  9093.     <filler1>0</filler1>
  9094.     <cantDelete> <false /> </cantDelete>
  9095.     <showPict> <true /> </showPict>
  9096.     <dontSearch> <false /> </dontSearch>
  9097.     <owner>19747</owner>
  9098.     <link rel="stylesheet" type="text/css" href="stylesheet_3268.css" />
  9099.     <part>
  9100.         <id>1</id>
  9101.         <type>field</type>
  9102.         <visible> <true /> </visible>
  9103.         <dontWrap> <false /> </dontWrap>
  9104.         <dontSearch> <false /> </dontSearch>
  9105.         <sharedText> <false /> </sharedText>
  9106.         <fixedLineHeight> <false /> </fixedLineHeight>
  9107.         <autoTab> <false /> </autoTab>
  9108.         <lockText> <true /> </lockText>
  9109.         <rect>
  9110.             <left>0</left>
  9111.             <top>48</top>
  9112.             <right>448</right>
  9113.             <bottom>694</bottom>
  9114.         </rect>
  9115.         <style>transparent</style>
  9116.         <autoSelect> <false /> </autoSelect>
  9117.         <showLines> <false /> </showLines>
  9118.         <wideMargins> <false /> </wideMargins>
  9119.         <multipleLines> <false /> </multipleLines>
  9120.         <reservedFamily> 0 </reservedFamily>
  9121.         <titleWidth>0</titleWidth>
  9122.         <icon>0</icon>
  9123.         <textAlign>left</textAlign>
  9124.         <font>Geneva</font>
  9125.         <textSize>12</textSize>
  9126.         <textStyle>plain</textStyle>
  9127.         <textHeight>16</textHeight>
  9128.         <name>License</name>
  9129.         <script></script>
  9130.     </part>
  9131.     <content>
  9132.         <layer>background</layer>
  9133.         <id>5</id>
  9134.         <text>HyperTint License Agreement</text>
  9135.     </content>
  9136.     <content>
  9137.         <layer>card</layer>
  9138.         <id>1</id>
  9139.         <text><span class="style2">lease read this license agreement before mailing your order form.  It lists the terms of the agreement between you, the licensee, and Symplex Systems.  It is assumed that, if you order HyperTint, you find these terms acceptable.
  9140. </span><span class="style11">
  9141. </span><span class="style2">The single CPU license for HyperTint allows running on a single computer.  Running HyperTint on additional computers require additional licenses to be purchased.  Distribution of the HyperTint externals within a stack requires a separate distribution license from Symplex Systems.
  9142. </span><span class="style11">
  9143. </span><span class="style2">You recognize that the HyperTint externals go beyond the bounds of the standard HyperCard XCMD interface.  Because of the nature of the software, Symplex System cannot guarantee that HyperTint will be compatible with future versions of HyperCard or with future versions of Macintosh system software.  It is your responsibility to test HyperTint in your application to determine that HyperTint performs correctly and is suitable.
  9144. </span><span class="style11">
  9145. </span><span class="style2">UNDER NO CIRCUMSTANCES, INCLUDING NEGLIGENCE, SHALL SYMPLEX 
  9146. SYSTEMS OR ITS EMPLOYEES BE LIABLE FOR ANY INCIDENTAL, SPECIAL 
  9147. OR CONSEQUENTIAL DAMAGES THAT RESULT FROM THE USE OR 
  9148. INABILITY TO USE THE SOFTWARE OR RELATED SOFTWARE, EVEN IF 
  9149. SYMPLEX SYSTEMS HAS BEEN ADVISED OF THE POSSIBILITY OF THE SUCH DAMAGES.  SOME STATES DO NOT ALLOW THE LIMITATION OR 
  9150. EXCLUSION OF LIABILITY FOR INCIDENTAL OR CONSEQUENTIAL 
  9151. DAMAGES SO THE ABOVE LIMITATION OR EXCLUSION MAY NOT APPLY 
  9152. TO YOU.  In no event shall Symplex Systems' total liability to you
  9153. for all damages, losses, and causes of action (whether in contract,
  9154. tort, (including negligence) or otherwise) exceed the amount paid
  9155. by you for HyperTint.
  9156. </span><span class="style11">
  9157. You may transfer your license to another person as long as that person has read this license and agrees to its terms, and all copies of the HyperTint stack and the HyperTint externals either are transferred to the new licensee or are destroyed.  In order for the new licensee to receive technical support, Symplex Systems must be given the name and address information for both the original licensee and the new licensee.
  9158.  
  9159. </span><span class="style2">Nothing in this license places any restrictions on Symplex Systems selling or giving away the HyperTint externals to other parties, in whatever form Symplex desires.  
  9160. </span></text>
  9161.     </content>
  9162.     <content>
  9163.         <layer>background</layer>
  9164.         <id>1</id>
  9165.         <text>About HyperTint</text>
  9166.     </content>
  9167.     <name>HyperTint License Agreeme</name>
  9168.     <script></script>
  9169. </card>
  9170.  
  9171.  
  9172.